class Ingenico::Connect::SDK::Domain::Mandates::MandateAddress
@attr [String] city @attr [String] country_code
@attr [String] house_number
@attr [String] street @attr [String] zip
Attributes
city[RW]
country_code[RW]
house_number[RW]
street[RW]
zip[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/mandates/mandate_address.rb, line 39 def from_hash(hash) super if hash.has_key? 'city' @city = hash['city'] end if hash.has_key? 'countryCode' @country_code = hash['countryCode'] end if hash.has_key? 'houseNumber' @house_number = hash['houseNumber'] end if hash.has_key? 'street' @street = hash['street'] end if hash.has_key? 'zip' @zip = hash['zip'] end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/mandates/mandate_address.rb, line 29 def to_h hash = super hash['city'] = @city unless @city.nil? hash['countryCode'] = @country_code unless @country_code.nil? hash['houseNumber'] = @house_number unless @house_number.nil? hash['street'] = @street unless @street.nil? hash['zip'] = @zip unless @zip.nil? hash end