lib/pagseguro_catcher/transaction/item.rb in pagseguro_catcher-0.0.4 vs lib/pagseguro_catcher/transaction/item.rb in pagseguro_catcher-0.1.0
- old
+ new
@@ -5,9 +5,13 @@
def initialize(body)
self.body = body
end
+ def id
+ self[:id].to_i
+ end
+
def amount
self[:amount].to_f
end
end
\ No newline at end of file