Class: OnlinePayments::SDK::Domain::MandatePersonalNameResponse
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::MandatePersonalNameResponse
- Defined in:
- lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb
Instance Attribute Summary collapse
-
#first_name ⇒ String
The current value of first_name.
-
#surname ⇒ String
The current value of surname.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#first_name ⇒ String
Returns the current value of first_name.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb', line 11 def first_name @first_name end |
#surname ⇒ String
Returns the current value of surname.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb', line 11 def surname @surname end |
Instance Method Details
#from_hash(hash) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb', line 25 def from_hash(hash) super if hash.has_key? 'firstName' @first_name = hash['firstName'] end if hash.has_key? 'surname' @surname = hash['surname'] end end |
#to_h ⇒ Hash
18 19 20 21 22 23 |
# File 'lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb', line 18 def to_h hash = super hash['firstName'] = @first_name unless @first_name.nil? hash['surname'] = @surname unless @surname.nil? hash end |