Class: Ingenico::Connect::SDK::Domain::Product::GetCustomerDetailsResponse
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Product::GetCustomerDetailsResponse
- Defined in:
- lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb
Instance Attribute Summary collapse
-
#city ⇒ String
The current value of city.
-
#country ⇒ String
The current value of country.
-
#email_address ⇒ String
The current value of email_address.
-
#first_name ⇒ String
The current value of first_name.
-
#fiscal_number ⇒ String
The current value of fiscal_number.
-
#language_code ⇒ String
The current value of language_code.
-
#phone_number ⇒ String
The current value of phone_number.
-
#street ⇒ String
The current value of street.
-
#surname ⇒ String
The current value of surname.
-
#zip ⇒ String
The current value of zip.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#city ⇒ String
Returns the current value of city.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 21 def city @city end |
#country ⇒ String
Returns the current value of country.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 21 def country @country end |
#email_address ⇒ String
Returns the current value of email_address.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 21 def email_address @email_address end |
#first_name ⇒ String
Returns the current value of first_name.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 21 def first_name @first_name end |
#fiscal_number ⇒ String
Returns the current value of fiscal_number.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 21 def fiscal_number @fiscal_number end |
#language_code ⇒ String
Returns the current value of language_code.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 21 def language_code @language_code end |
#phone_number ⇒ String
Returns the current value of phone_number.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 21 def phone_number @phone_number end |
#street ⇒ String
Returns the current value of street.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 21 def street @street end |
#surname ⇒ String
Returns the current value of surname.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 21 def surname @surname end |
#zip ⇒ String
Returns the current value of zip.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 21 def zip @zip end |
Instance Method Details
#from_hash(hash) ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 59 def from_hash(hash) super if hash.has_key? 'city' @city = hash['city'] end if hash.has_key? 'country' @country = hash['country'] end if hash.has_key? 'emailAddress' @email_address = hash['emailAddress'] end if hash.has_key? 'firstName' @first_name = hash['firstName'] end if hash.has_key? 'fiscalNumber' @fiscal_number = hash['fiscalNumber'] end if hash.has_key? 'languageCode' @language_code = hash['languageCode'] end if hash.has_key? 'phoneNumber' @phone_number = hash['phoneNumber'] end if hash.has_key? 'street' @street = hash['street'] end if hash.has_key? 'surname' @surname = hash['surname'] end if hash.has_key? 'zip' @zip = hash['zip'] end end |
#to_h ⇒ Hash
44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb', line 44 def to_h hash = super hash['city'] = @city unless @city.nil? hash['country'] = @country unless @country.nil? hash['emailAddress'] = @email_address unless @email_address.nil? hash['firstName'] = @first_name unless @first_name.nil? hash['fiscalNumber'] = @fiscal_number unless @fiscal_number.nil? hash['languageCode'] = @language_code unless @language_code.nil? hash['phoneNumber'] = @phone_number unless @phone_number.nil? hash['street'] = @street unless @street.nil? hash['surname'] = @surname unless @surname.nil? hash['zip'] = @zip unless @zip.nil? hash end |