class Ingenico::Connect::SDK::Domain::Mandates::GetMandateResponse
@attr [Ingenico::Connect::SDK::Domain::Mandates::MandateResponse] mandate
Attributes
mandate[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/mandates/get_mandate_response.rb, line 24 def from_hash(hash) super if hash.has_key? 'mandate' raise TypeError, "value '%s' is not a Hash" % [hash['mandate']] unless hash['mandate'].is_a? Hash @mandate = Ingenico::Connect::SDK::Domain::Mandates::MandateResponse.new_from_hash(hash['mandate']) 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/mandates/get_mandate_response.rb, line 18 def to_h hash = super hash['mandate'] = @mandate.to_h unless @mandate.nil? hash end