Class: Io::Flow::V0::Models::DeviceFingerprintDetailsBrowser
- Inherits:
-
DeviceFingerprintDetails
- Object
- DeviceFingerprintDetails
- Io::Flow::V0::Models::DeviceFingerprintDetailsBrowser
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Used to identify device during 3ds verification.
Instance Attribute Summary collapse
-
#accept ⇒ Object
readonly
Returns the value of attribute accept.
-
#color_depth ⇒ Object
readonly
Returns the value of attribute color_depth.
-
#java_enabled ⇒ Object
readonly
Returns the value of attribute java_enabled.
-
#screen_height ⇒ Object
readonly
Returns the value of attribute screen_height.
-
#screen_width ⇒ Object
readonly
Returns the value of attribute screen_width.
-
#time_zone_offset ⇒ Object
readonly
Returns the value of attribute time_zone_offset.
Attributes inherited from DeviceFingerprintDetails
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ DeviceFingerprintDetailsBrowser
constructor
A new instance of DeviceFingerprintDetailsBrowser.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from DeviceFingerprintDetails
Constructor Details
#initialize(incoming = {}) ⇒ DeviceFingerprintDetailsBrowser
Returns a new instance of DeviceFingerprintDetailsBrowser.
36463 36464 36465 36466 36467 36468 36469 36470 36471 36472 36473 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36463 def initialize(incoming={}) super(:type => DeviceFingerprintDetails::Types::DEVICE_FINGERPRINT_DETAILS_BROWSER) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:java_enabled, :color_depth, :screen_height, :screen_width, :time_zone_offset], 'DeviceFingerprintDetailsBrowser') @accept = (x = opts.delete(:accept); x.nil? ? nil : HttpClient::Preconditions.assert_class('accept', x, String)) @java_enabled = HttpClient::Preconditions.assert_boolean('java_enabled', opts.delete(:java_enabled)) @color_depth = HttpClient::Preconditions.assert_class('color_depth', opts.delete(:color_depth), Integer) @screen_height = HttpClient::Preconditions.assert_class('screen_height', opts.delete(:screen_height), Integer) @screen_width = HttpClient::Preconditions.assert_class('screen_width', opts.delete(:screen_width), Integer) @time_zone_offset = HttpClient::Preconditions.assert_class('time_zone_offset', opts.delete(:time_zone_offset), Integer) end |
Instance Attribute Details
#accept ⇒ Object (readonly)
Returns the value of attribute accept.
36461 36462 36463 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36461 def accept @accept end |
#color_depth ⇒ Object (readonly)
Returns the value of attribute color_depth.
36461 36462 36463 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36461 def color_depth @color_depth end |
#java_enabled ⇒ Object (readonly)
Returns the value of attribute java_enabled.
36461 36462 36463 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36461 def java_enabled @java_enabled end |
#screen_height ⇒ Object (readonly)
Returns the value of attribute screen_height.
36461 36462 36463 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36461 def screen_height @screen_height end |
#screen_width ⇒ Object (readonly)
Returns the value of attribute screen_width.
36461 36462 36463 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36461 def screen_width @screen_width end |
#time_zone_offset ⇒ Object (readonly)
Returns the value of attribute time_zone_offset.
36461 36462 36463 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36461 def time_zone_offset @time_zone_offset end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
36479 36480 36481 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36479 def copy(incoming={}) DeviceFingerprintDetailsBrowser.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
36483 36484 36485 36486 36487 36488 36489 36490 36491 36492 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36483 def subtype_to_hash { :accept => accept, :java_enabled => java_enabled, :color_depth => color_depth, :screen_height => screen_height, :screen_width => screen_width, :time_zone_offset => time_zone_offset } end |
#to_json ⇒ Object
36475 36476 36477 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36475 def to_json JSON.dump(to_hash) end |