class Ingenico::Connect::SDK::Domain::Hostedmandatemanagement::GetHostedMandateManagementResponse
@attr [Ingenico::Connect::SDK::Domain::Mandates::MandateResponse] mandate @attr [String] status
Attributes
mandate[RW]
status[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/hostedmandatemanagement/get_hosted_mandate_management_response.rb, line 28 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 if hash.has_key? 'status' @status = hash['status'] 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/hostedmandatemanagement/get_hosted_mandate_management_response.rb, line 21 def to_h hash = super hash['mandate'] = @mandate.to_h unless @mandate.nil? hash['status'] = @status unless @status.nil? hash end