Class: Worldline::Connect::SDK::V1::Domain::ContactDetails
- Inherits:
-
ContactDetailsBase
- Object
- Domain::DataObject
- ContactDetailsBase
- Worldline::Connect::SDK::V1::Domain::ContactDetails
- Defined in:
- lib/worldline/connect/sdk/v1/domain/contact_details.rb
Instance Attribute Summary collapse
-
#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.
Attributes inherited from ContactDetailsBase
#email_address, #email_message_type
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#fax_number ⇒ String
Returns the current value of fax_number.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/contact_details.rb', line 16 def fax_number @fax_number end |
#mobile_phone_number ⇒ String
Returns the current value of mobile_phone_number.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/contact_details.rb', line 16 def mobile_phone_number @mobile_phone_number end |
#phone_number ⇒ String
Returns the current value of phone_number.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/contact_details.rb', line 16 def phone_number @phone_number end |
#work_phone_number ⇒ String
Returns the current value of work_phone_number.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/contact_details.rb', line 16 def work_phone_number @work_phone_number end |
Instance Method Details
#from_hash(hash) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/worldline/connect/sdk/v1/domain/contact_details.rb', line 36 def from_hash(hash) super if hash.has_key? 'faxNumber' @fax_number = hash['faxNumber'] end if hash.has_key? 'mobilePhoneNumber' @mobile_phone_number = hash['mobilePhoneNumber'] end if hash.has_key? 'phoneNumber' @phone_number = hash['phoneNumber'] end if hash.has_key? 'workPhoneNumber' @work_phone_number = hash['workPhoneNumber'] end end |
#to_h ⇒ Hash
27 28 29 30 31 32 33 34 |
# File 'lib/worldline/connect/sdk/v1/domain/contact_details.rb', line 27 def to_h hash = super 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 |