Class: Ingenico::Connect::SDK::Domain::Hostedmandatemanagement::CreateHostedMandateManagementResponse
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Hostedmandatemanagement::CreateHostedMandateManagementResponse
- Defined in:
- lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_response.rb
Instance Attribute Summary collapse
-
#hosted_mandate_management_id ⇒ String
The current value of hosted_mandate_management_id.
-
#partial_redirect_url ⇒ String
The current value of partial_redirect_url.
-
#returnmac ⇒ String
The current value of returnmac.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#hosted_mandate_management_id ⇒ String
Returns the current value of hosted_mandate_management_id.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_response.rb', line 14 def hosted_mandate_management_id @hosted_mandate_management_id end |
#partial_redirect_url ⇒ String
Returns the current value of partial_redirect_url.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_response.rb', line 14 def partial_redirect_url @partial_redirect_url end |
#returnmac ⇒ String
Returns the current value of returnmac.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_response.rb', line 14 def returnmac @returnmac 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/hostedmandatemanagement/create_hosted_mandate_management_response.rb', line 31 def from_hash(hash) super if hash.has_key? 'RETURNMAC' @returnmac = hash['RETURNMAC'] end if hash.has_key? 'hostedMandateManagementId' @hosted_mandate_management_id = hash['hostedMandateManagementId'] end if hash.has_key? 'partialRedirectUrl' @partial_redirect_url = hash['partialRedirectUrl'] end end |
#to_h ⇒ Hash
23 24 25 26 27 28 29 |
# File 'lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_response.rb', line 23 def to_h hash = super hash['RETURNMAC'] = @returnmac unless @returnmac.nil? hash['hostedMandateManagementId'] = @hosted_mandate_management_id unless @hosted_mandate_management_id.nil? hash['partialRedirectUrl'] = @partial_redirect_url unless @partial_redirect_url.nil? hash end |