Class: Ingenico::Connect::SDK::Domain::Token::MandateApproval
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Token::MandateApproval
- Defined in:
- lib/ingenico/connect/sdk/domain/token/mandate_approval.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#mandate_signature_date ⇒ String
The current value of mandate_signature_date.
-
#mandate_signature_place ⇒ String
The current value of mandate_signature_place.
-
#mandate_signed ⇒ true/false
The current value of mandate_signed.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#mandate_signature_date ⇒ String
Returns the current value of mandate_signature_date.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/token/mandate_approval.rb', line 14 def mandate_signature_date @mandate_signature_date end |
#mandate_signature_place ⇒ String
Returns the current value of mandate_signature_place.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/token/mandate_approval.rb', line 14 def mandate_signature_place @mandate_signature_place end |
#mandate_signed ⇒ true/false
Returns the current value of mandate_signed.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/token/mandate_approval.rb', line 14 def mandate_signed @mandate_signed 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/token/mandate_approval.rb', line 31 def from_hash(hash) super if hash.has_key? 'mandateSignatureDate' @mandate_signature_date = hash['mandateSignatureDate'] end if hash.has_key? 'mandateSignaturePlace' @mandate_signature_place = hash['mandateSignaturePlace'] end if hash.has_key? 'mandateSigned' @mandate_signed = hash['mandateSigned'] end end |
#to_h ⇒ Hash
23 24 25 26 27 28 29 |
# File 'lib/ingenico/connect/sdk/domain/token/mandate_approval.rb', line 23 def to_h hash = super hash['mandateSignatureDate'] = @mandate_signature_date unless @mandate_signature_date.nil? hash['mandateSignaturePlace'] = @mandate_signature_place unless @mandate_signature_place.nil? hash['mandateSigned'] = @mandate_signed unless @mandate_signed.nil? hash end |