class Ingenico::Direct::SDK::Domain::FraudFields
@attr [String] black_list_data
@attr [String] customer_ip_address
Attributes
black_list_data[RW]
customer_ip_address[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Direct::SDK::DataObject#from_hash
# File lib/ingenico/direct/sdk/domain/fraud_fields.rb, line 24 def from_hash(hash) super @black_list_data = hash['blackListData'] if hash.key? 'blackListData' @customer_ip_address = hash['customerIpAddress'] if hash.key? 'customerIpAddress' end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/fraud_fields.rb, line 17 def to_h hash = super hash['blackListData'] = @black_list_data unless @black_list_data.nil? hash['customerIpAddress'] = @customer_ip_address unless @customer_ip_address.nil? hash end