class FinancialTransaction
Attributes
amount_credited[RW]
amount_debited[RW]
date[RW]
description[RW]
id[RW]
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/miiCardConsumers.rb, line 384 def self.from_hash(hash) return FinancialTransaction.new( (Util::parse_dot_net_json_datetime(hash['Date']) rescue nil), hash['AmountCredited'], hash['AmountDebited'], hash['Description'], hash['ID'] ) end
new(date, amount_credited, amount_debited, description, id)
click to toggle source
# File lib/miiCardConsumers.rb, line 376 def initialize(date, amount_credited, amount_debited, description, id) @date = date @amount_credited = amount_credited @amount_debited = amount_debited @description = description @id = id end