Permalink
Browse files

formatting money for to_hash output

  • Loading branch information...
1 parent d116af3 commit 69d0cb8318a6a1cbd0c6b6463ece11283daa47bf @smudge committed Jan 31, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/kickstarter/project.rb
  2. +1 −1 lib/kickstarter/project_card.rb
  3. +1 −1 lib/kickstarter/tier.rb
@@ -102,11 +102,11 @@ def to_hash
:short_url => short_url,
:description => description,
:owner => owner,
- :pledge_amount => pledge_amount,
+ :pledge_amount => pledge_amount.format,
:pledge_percent => pledge_percent,
:pledge_deadline => pledge_deadline.to_s,
:image_url => image_url,
- :pledge_goal => pledge_goal #,
+ :pledge_goal => pledge_goal.format #,
#:full_description => full_description,
#:risks => risks,
#:tiers => tiers.map{|t|t.to_hash}
@@ -62,7 +62,7 @@ def to_hash
:url => url,
:description => description,
:owner => owner,
- :pledge_amount => pledge_amount,
+ :pledge_amount => pledge_amount.format,
:pledge_percent => pledge_percent,
:pledge_deadline => pledge_deadline.to_s,
:image_url => image_url
View
@@ -51,7 +51,7 @@ def estimated_delivery
def to_hash
{
:id => id,
- :minimum_pledge => minimum_pledge,
+ :minimum_pledge => minimum_pledge.format,
:backer_count => backer_count,
:description => description,
:limited => limited,

0 comments on commit 69d0cb8

Please sign in to comment.