Sha256: 86cdf0d78ebf4ce42089ebb9471c6de0394eda37a9afcc330fa1de9a70ee5e12

Contents?: true

Size: 323 Bytes

Versions: 3

Compression:

Stored size: 323 Bytes

Contents

module PayoneerCsv

  class Transaction
    attr_reader :description
    attr_reader :amount
    attr_reader :created_at

    def initialize(attributes)
      @created_at = attributes[:created_at]
      @description = attributes[:description].strip
      @amount = attributes[:amount].gsub(',', '').to_f
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
payoneer_csv-0.1.4 lib/payoneer_csv/transaction.rb
payoneer_csv-0.1.2 lib/payoneer_csv/transaction.rb
payoneer_csv-0.1.1 lib/payoneer_csv/transaction.rb