Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
formatting money for to_hash output
  • Loading branch information
smudge committed Jan 31, 2013
1 parent d116af3 commit 69d0cb8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/kickstarter/project.rb
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion lib/kickstarter/project_card.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/kickstarter/tier.rb
Expand Up @@ -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,
Expand Down

0 comments on commit 69d0cb8

Please sign in to comment.