Class: PinPayment::Base
- Inherits:
-
Object
- Object
- PinPayment::Base
- Defined in:
- lib/pin_payment/base.rb
Direct Known Subclasses
Balance, BankAccount, Card, Charge, Customer, Recipient, Refund, Transfer, Transfer::LineItem
Instance Method Summary collapse
-
#initialize(token, options = {}) ⇒ Base
constructor
A new instance of Base.
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, = {} self.token = token self.class.parse_card_data().each{|k,v| send("#{k}=", v) if self.class.attributes.include?(k.to_sym) } end |