class Ingenico::Connect::SDK::Domain::Definitions::FraudResults
@attr [String] fraud_service_result
@attr [Ingenico::Connect::SDK::Domain::Definitions::InAuth] in_auth
Attributes
fraud_service_result[RW]
in_auth[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/definitions/fraud_results.rb, line 28 def from_hash(hash) super if hash.has_key? 'fraudServiceResult' @fraud_service_result = hash['fraudServiceResult'] end if hash.has_key? 'inAuth' raise TypeError, "value '%s' is not a Hash" % [hash['inAuth']] unless hash['inAuth'].is_a? Hash @in_auth = Ingenico::Connect::SDK::Domain::Definitions::InAuth.new_from_hash(hash['inAuth']) 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/definitions/fraud_results.rb, line 21 def to_h hash = super hash['fraudServiceResult'] = @fraud_service_result unless @fraud_service_result.nil? hash['inAuth'] = @in_auth.to_h unless @in_auth.nil? hash end