lib/response.rb in bobes-textmagic-0.3.1 vs lib/response.rb in bobes-textmagic-0.3.2
- old
+ new
@@ -7,9 +7,10 @@
class Response
def self.account(hash)
response = OpenStruct.new(hash)
response.balance = response.balance.to_f
+ response.balance = response.balance.to_i if response.balance % 1 == 0
response
end
def self.send(hash, single)
response = nil