Class: Worldline::Connect::SDK::V1::Domain::DeviceFingerprintDetails
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::DeviceFingerprintDetails
- Defined in:
- lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb
Instance Attribute Summary collapse
-
#payment_id ⇒ String
The current value of payment_id.
-
#raw_device_fingerprint_output ⇒ String
The current value of raw_device_fingerprint_output.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#payment_id ⇒ String
Returns the current value of payment_id.
14 15 16 |
# File 'lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb', line 14 def payment_id @payment_id end |
#raw_device_fingerprint_output ⇒ String
Returns the current value of raw_device_fingerprint_output.
14 15 16 |
# File 'lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb', line 14 def raw_device_fingerprint_output @raw_device_fingerprint_output end |
Instance Method Details
#from_hash(hash) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb', line 28 def from_hash(hash) super if hash.has_key? 'paymentId' @payment_id = hash['paymentId'] end if hash.has_key? 'rawDeviceFingerprintOutput' @raw_device_fingerprint_output = hash['rawDeviceFingerprintOutput'] end end |
#to_h ⇒ Hash
21 22 23 24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb', line 21 def to_h hash = super hash['paymentId'] = @payment_id unless @payment_id.nil? hash['rawDeviceFingerprintOutput'] = @raw_device_fingerprint_output unless @raw_device_fingerprint_output.nil? hash end |