Class: OnlinePayments::SDK::Domain::PaymentProduct5412
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::PaymentProduct5412
- Defined in:
- lib/onlinepayments/sdk/domain/payment_product5412.rb
Instance Attribute Summary collapse
-
#app_url ⇒ String
The current value of app_url.
-
#polling_url ⇒ String
The current value of polling_url.
-
#qr_code ⇒ String
The current value of qr_code.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#app_url ⇒ String
Returns the current value of app_url.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_product5412.rb', line 12 def app_url @app_url end |
#polling_url ⇒ String
Returns the current value of polling_url.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_product5412.rb', line 12 def polling_url @polling_url end |
#qr_code ⇒ String
Returns the current value of qr_code.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_product5412.rb', line 12 def qr_code @qr_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/onlinepayments/sdk/domain/payment_product5412.rb', line 29 def from_hash(hash) super if hash.has_key? 'appUrl' @app_url = hash['appUrl'] end if hash.has_key? 'pollingUrl' @polling_url = hash['pollingUrl'] end if hash.has_key? 'qrCode' @qr_code = hash['qrCode'] end end |
#to_h ⇒ Hash
21 22 23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/payment_product5412.rb', line 21 def to_h hash = super hash['appUrl'] = @app_url unless @app_url.nil? hash['pollingUrl'] = @polling_url unless @polling_url.nil? hash['qrCode'] = @qr_code unless @qr_code.nil? hash end |