Class: Ingenico::Connect::SDK::Domain::Product::MobilePaymentProductSession302SpecificInput
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Product::MobilePaymentProductSession302SpecificInput
- Defined in:
- lib/ingenico/connect/sdk/domain/product/mobile_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.
-
#validation_url ⇒ String
The current value of validation_url.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#display_name ⇒ String
Returns the current value of display_name.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb', line 14 def display_name @display_name end |
#domain_name ⇒ String
Returns the current value of domain_name.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb', line 14 def domain_name @domain_name end |
#validation_url ⇒ String
Returns the current value of validation_url.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb', line 14 def validation_url @validation_url end |
Instance Method Details
#from_hash(hash) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb', line 31 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 if hash.has_key? 'validationUrl' @validation_url = hash['validationUrl'] end end |
#to_h ⇒ Hash
23 24 25 26 27 28 29 |
# File 'lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb', line 23 def to_h hash = super hash['displayName'] = @display_name unless @display_name.nil? hash['domainName'] = @domain_name unless @domain_name.nil? hash['validationUrl'] = @validation_url unless @validation_url.nil? hash end |