Skip to content

Commit

Permalink
Retrun a boolean instead of a string
Browse files Browse the repository at this point in the history
Currently `receipt.is_trial_period` returned a string instead of a boolean. I think the class should handle this.
  • Loading branch information
philipgiuliani committed Nov 13, 2014
1 parent ca39d44 commit f33be95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/itunes/receipt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def initialize(attributes = {})
receipt_attributes[:in_app].map { |ia| self.class.new(:receipt => ia) }
end
@is_trial_period = if receipt_attributes[:is_trial_period]
receipt_attributes[:is_trial_period]
receipt_attributes[:is_trial_period] == "true"
end
@itunes_env = attributes[:itunes_env] || Itunes.itunes_env
@latest = case attributes[:latest_receipt_info]
Expand Down

0 comments on commit f33be95

Please sign in to comment.