Method: ProcessOut::CardInformation#prefill
- Defined in:
- lib/processout/card_information.rb
#prefill(data) ⇒ Object
Prefills the object with the data passed as parameters Params:
data-
Hashof data
119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/processout/card_information.rb', line 119 def prefill(data) if data.nil? return self end self.iin = data.fetch(:iin, self.iin) self.scheme = data.fetch(:scheme, self.scheme) self.type = data.fetch(:type, self.type) self.bank_name = data.fetch(:bank_name, self.bank_name) self.brand = data.fetch(:brand, self.brand) self.category = data.fetch(:category, self.category) self.country = data.fetch(:country, self.country) self end |