Class: Ingenico::Direct::SDK::Domain::FraudFields
- Inherits:
-
Ingenico::Direct::SDK::DataObject
- Object
- Ingenico::Direct::SDK::DataObject
- Ingenico::Direct::SDK::Domain::FraudFields
- Defined in:
- lib/ingenico/direct/sdk/domain/fraud_fields.rb
Instance Attribute Summary collapse
-
#black_list_data ⇒ String
The current value of black_list_data.
-
#customer_ip_address ⇒ String
The current value of customer_ip_address.
Instance Method Summary collapse
Methods inherited from Ingenico::Direct::SDK::DataObject
Instance Attribute Details
#black_list_data ⇒ String
Returns the current value of black_list_data.
12 13 14 |
# File 'lib/ingenico/direct/sdk/domain/fraud_fields.rb', line 12 def black_list_data @black_list_data end |
#customer_ip_address ⇒ String
Returns the current value of customer_ip_address.
12 13 14 |
# File 'lib/ingenico/direct/sdk/domain/fraud_fields.rb', line 12 def customer_ip_address @customer_ip_address end |
Instance Method Details
#from_hash(hash) ⇒ Object
24 25 26 27 28 |
# 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 ⇒ Hash
17 18 19 20 21 22 |
# 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 |