Sha256: 24211094e1ff1fd87252dbbb70bfe208383b659d1d21a692f120f8f8bd0d2e53

Contents?: true

Size: 290 Bytes

Versions: 4

Compression:

Stored size: 290 Bytes

Contents

module PagseguroCatcher
  module Transaction
    
    class Item < Transaction::Body
      
      def initialize(body)
        self.body = body
      end
      
      def id
        self[:id].to_i
      end
      
      def amount
        self[:amount].to_f
      end
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pagseguro_catcher-0.1.3 lib/pagseguro_catcher/transaction/item.rb
pagseguro_catcher-0.1.2 lib/pagseguro_catcher/transaction/item.rb
pagseguro_catcher-0.1.1 lib/pagseguro_catcher/transaction/item.rb
pagseguro_catcher-0.1.0 lib/pagseguro_catcher/transaction/item.rb