Class: Ingenico::Connect::SDK::Domain::Definitions::FraudFieldsShippingDetails
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Definitions::FraudFieldsShippingDetails
- Defined in:
- lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb
Instance Attribute Summary collapse
-
#method_details ⇒ Object
String.
-
#method_speed ⇒ Object
Integer.
-
#method_type ⇒ Object
Integer.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#method_details ⇒ Object
String
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb', line 14 def method_details @method_details end |
#method_speed ⇒ Object
Integer
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb', line 17 def method_speed @method_speed end |
#method_type ⇒ Object
Integer
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb', line 20 def method_type @method_type end |
Instance Method Details
#from_hash(hash) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb', line 30 def from_hash(hash) super if hash.has_key?('methodDetails') @method_details = hash['methodDetails'] end if hash.has_key?('methodSpeed') @method_speed = hash['methodSpeed'] end if hash.has_key?('methodType') @method_type = hash['methodType'] end end |
#to_h ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb', line 22 def to_h hash = super add_to_hash(hash, 'methodDetails', @method_details) add_to_hash(hash, 'methodSpeed', @method_speed) add_to_hash(hash, 'methodType', @method_type) hash end |