Class: Ingenico::Direct::SDK::Domain::ContactDetails
- Inherits:
-
Ingenico::Direct::SDK::DataObject
- Object
- Ingenico::Direct::SDK::DataObject
- Ingenico::Direct::SDK::Domain::ContactDetails
- Defined in:
- lib/ingenico/direct/sdk/domain/contact_details.rb
Instance Attribute Summary collapse
-
#email_address ⇒ String
The current value of email_address.
-
#fax_number ⇒ String
The current value of fax_number.
-
#mobile_phone_number ⇒ String
The current value of mobile_phone_number.
-
#phone_number ⇒ String
The current value of phone_number.
-
#work_phone_number ⇒ String
The current value of work_phone_number.
Instance Method Summary collapse
Methods inherited from Ingenico::Direct::SDK::DataObject
Instance Attribute Details
#email_address ⇒ String
Returns the current value of email_address.
15 16 17 |
# File 'lib/ingenico/direct/sdk/domain/contact_details.rb', line 15 def email_address @email_address end |
#fax_number ⇒ String
Returns the current value of fax_number.
15 16 17 |
# File 'lib/ingenico/direct/sdk/domain/contact_details.rb', line 15 def fax_number @fax_number end |
#mobile_phone_number ⇒ String
Returns the current value of mobile_phone_number.
15 16 17 |
# File 'lib/ingenico/direct/sdk/domain/contact_details.rb', line 15 def mobile_phone_number @mobile_phone_number end |
#phone_number ⇒ String
Returns the current value of phone_number.
15 16 17 |
# File 'lib/ingenico/direct/sdk/domain/contact_details.rb', line 15 def phone_number @phone_number end |
#work_phone_number ⇒ String
Returns the current value of work_phone_number.
15 16 17 |
# File 'lib/ingenico/direct/sdk/domain/contact_details.rb', line 15 def work_phone_number @work_phone_number end |
Instance Method Details
#from_hash(hash) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/ingenico/direct/sdk/domain/contact_details.rb', line 33 def from_hash(hash) super @email_address = hash['emailAddress'] if hash.key? 'emailAddress' @fax_number = hash['faxNumber'] if hash.key? 'faxNumber' @mobile_phone_number = hash['mobilePhoneNumber'] if hash.key? 'mobilePhoneNumber' @phone_number = hash['phoneNumber'] if hash.key? 'phoneNumber' @work_phone_number = hash['workPhoneNumber'] if hash.key? 'workPhoneNumber' end |
#to_h ⇒ Hash
23 24 25 26 27 28 29 30 31 |
# File 'lib/ingenico/direct/sdk/domain/contact_details.rb', line 23 def to_h hash = super hash['emailAddress'] = @email_address unless @email_address.nil? hash['faxNumber'] = @fax_number unless @fax_number.nil? hash['mobilePhoneNumber'] = @mobile_phone_number unless @mobile_phone_number.nil? hash['phoneNumber'] = @phone_number unless @phone_number.nil? hash['workPhoneNumber'] = @work_phone_number unless @work_phone_number.nil? hash end |