Method: ProcessOut::SubmerchantAddress#initialize
- Defined in:
- lib/processout/submerchant_address.rb
#initialize(client, data = {}) ⇒ SubmerchantAddress
Initializes the SubmerchantAddress 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/submerchant_address.rb', line 53 def initialize(client, data = {}) @client = client self.line1 = data.fetch(:line1, nil) self.line2 = data.fetch(:line2, nil) self.city = data.fetch(:city, nil) self.state = data.fetch(:state, nil) self.country_code = data.fetch(:country_code, nil) self.zip = data.fetch(:zip, nil) self.county = data.fetch(:county, nil) end |