Method: ProcessOut::SubmerchantAddress#prefill
- Defined in:
- lib/processout/submerchant_address.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/submerchant_address.rb', line 119 def prefill(data) if data.nil? return self end self.line1 = data.fetch(:line1, self.line1) self.line2 = data.fetch(:line2, self.line2) self.city = data.fetch(:city, self.city) self.state = data.fetch(:state, self.state) self.country_code = data.fetch(:country_code, self.country_code) self.zip = data.fetch(:zip, self.zip) self.county = data.fetch(:county, self.county) self end |