Class: OnlinePayments::SDK::Domain::ShowFormData
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::ShowFormData
- Defined in:
- lib/onlinepayments/sdk/domain/show_form_data.rb
Instance Attribute Summary collapse
-
#payment_product5404 ⇒ OnlinePayments::SDK::Domain::PaymentProduct5404
The current value of payment_product5404.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#payment_product5404 ⇒ OnlinePayments::SDK::Domain::PaymentProduct5404
Returns the current value of payment_product5404.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 11 def payment_product5404 @payment_product5404 end |
Instance Method Details
#from_hash(hash) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 21 def from_hash(hash) super if hash.key? 'paymentProduct5404' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5404']] unless hash['paymentProduct5404'].is_a? Hash @payment_product5404 = OnlinePayments::SDK::Domain::PaymentProduct5404.new_from_hash(hash['paymentProduct5404']) end end |
#to_h ⇒ Hash
15 16 17 18 19 |
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 15 def to_h hash = super hash['paymentProduct5404'] = @payment_product5404.to_h if @payment_product5404 hash end |