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