class TigerPayment::Action

Attributes

action_type[R]
amount[R]
batch_id[R]
date[R]
ip_address[R]
processor_batch_id[R]
response_code[R]
response_text[R]
source[R]
success[R]
username[R]

Public Class Methods

new(params={}) click to toggle source
# File lib/tiger-payment/action.rb, line 14
def initialize(params={})
  
  params.each_pair do |k,v|
    if v == [{}]
      instance_variable_set('@'+k, nil)
    else
      instance_variable_set('@'+k, v.size == 1 ? v.first : v)
    end
  end
end