Class: Worldline::Connect::SDK::V1::Domain::MandateAddress
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::MandateAddress
- Defined in:
- lib/worldline/connect/sdk/v1/domain/mandate_address.rb
Instance Attribute Summary collapse
-
#city ⇒ String
The current value of city.
-
#country_code ⇒ String
The current value of country_code.
-
#house_number ⇒ String
The current value of house_number.
-
#street ⇒ String
The current value of street.
-
#zip ⇒ String
The current value of zip.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#city ⇒ String
Returns the current value of city.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_address.rb', line 17 def city @city end |
#country_code ⇒ String
Returns the current value of country_code.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_address.rb', line 17 def country_code @country_code end |
#house_number ⇒ String
Returns the current value of house_number.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_address.rb', line 17 def house_number @house_number end |
#street ⇒ String
Returns the current value of street.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_address.rb', line 17 def street @street end |
#zip ⇒ String
Returns the current value of zip.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_address.rb', line 17 def zip @zip end |
Instance Method Details
#from_hash(hash) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_address.rb', line 40 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 ⇒ Hash
30 31 32 33 34 35 36 37 38 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_address.rb', line 30 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 |