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