Class: Worldline::Connect::SDK::V1::Domain::PersonalName
- Inherits:
-
PersonalNameBase
- Object
- Domain::DataObject
- PersonalNameBase
- Worldline::Connect::SDK::V1::Domain::PersonalName
- Defined in:
- lib/worldline/connect/sdk/v1/domain/personal_name.rb
Instance Attribute Summary collapse
-
#title ⇒ String
The current value of title.
Attributes inherited from PersonalNameBase
#first_name, #surname, #surname_prefix
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#title ⇒ String
Returns the current value of title.
13 14 15 |
# File 'lib/worldline/connect/sdk/v1/domain/personal_name.rb', line 13 def title @title end |
Instance Method Details
#from_hash(hash) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/personal_name.rb', line 24 def from_hash(hash) super if hash.has_key? 'title' @title = hash['title'] end end |
#to_h ⇒ Hash
18 19 20 21 22 |
# File 'lib/worldline/connect/sdk/v1/domain/personal_name.rb', line 18 def to_h hash = super hash['title'] = @title unless @title.nil? hash end |