class Ingenico::Connect::SDK::Domain::Token::MandateApproval
@attr [String] mandate_signature_date
@attr [String] mandate_signature_place
@attr [true/false] mandate_signed
Attributes
mandate_signature_date[RW]
mandate_signature_place[RW]
mandate_signed[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# 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()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# 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