Class: Mintchip::Hosted::TransactionLogEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/mintchip/hosted/transaction_log_entry.rb

Constant Summary collapse

ATTRIBUTES =
%w(amount challenge index logType payerId payeeId transactionTime currencyCode)

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ TransactionLogEntry

Returns a new instance of TransactionLogEntry.



8
9
10
11
12
# File 'lib/mintchip/hosted/transaction_log_entry.rb', line 8

def initialize(attrs)
  ATTRIBUTES.each do |attr|
    instance_variable_set("@#{attr.underscore}", attrs[attr])
  end
end