Class: PinPayment::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/pin_payment/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(token, options = {}) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/pin_payment/base.rb', line 8

def initialize token, options = {}
  self.token = token
  self.class.parse_card_data(options).each{|k,v| send("#{k}=", v) if self.class.attributes.include?(k.to_sym) }
end