Method: ProcessOut::CardInformation#initialize
- Defined in:
- lib/processout/card_information.rb
#initialize(client, data = {}) ⇒ CardInformation
Initializes the CardInformation object Params:
client-
ProcessOutclient instance data-
data that can be used to fill the object
53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/processout/card_information.rb', line 53 def initialize(client, data = {}) @client = client self.iin = data.fetch(:iin, nil) self.scheme = data.fetch(:scheme, nil) self.type = data.fetch(:type, nil) self.bank_name = data.fetch(:bank_name, nil) self.brand = data.fetch(:brand, nil) self.category = data.fetch(:category, nil) self.country = data.fetch(:country, nil) end |