Class: Ingenico::Connect::SDK::Domain::Payment::PersonalName
Instance Attribute Summary collapse
#first_name, #surname, #surname_prefix
Instance Method Summary
collapse
new_from_hash
Instance Attribute Details
#title ⇒ String
13
14
15
|
# File 'lib/ingenico/connect/sdk/domain/payment/personal_name.rb', line 13
def title
@title
end
|
Instance Method Details
#from_hash(hash) ⇒ Object
24
25
26
27
28
29
|
# File 'lib/ingenico/connect/sdk/domain/payment/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/ingenico/connect/sdk/domain/payment/personal_name.rb', line 18
def to_h
hash = super
hash['title'] = @title unless @title.nil?
hash
end
|