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.
34678 34679 34680 34681 34682 34683 34684 34685 34686 34687 34688 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34678 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.
34676 34677 34678 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34676 def accept @accept end |
#color_depth ⇒ Object (readonly)
Returns the value of attribute color_depth.
34676 34677 34678 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34676 def color_depth @color_depth end |
#java_enabled ⇒ Object (readonly)
Returns the value of attribute java_enabled.
34676 34677 34678 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34676 def java_enabled @java_enabled end |
#screen_height ⇒ Object (readonly)
Returns the value of attribute screen_height.
34676 34677 34678 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34676 def screen_height @screen_height end |
#screen_width ⇒ Object (readonly)
Returns the value of attribute screen_width.
34676 34677 34678 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34676 def screen_width @screen_width end |
#time_zone_offset ⇒ Object (readonly)
Returns the value of attribute time_zone_offset.
34676 34677 34678 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34676 def time_zone_offset @time_zone_offset end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
34694 34695 34696 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34694 def copy(incoming={}) DeviceFingerprintDetailsBrowser.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
34698 34699 34700 34701 34702 34703 34704 34705 34706 34707 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34698 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
34690 34691 34692 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34690 def to_json JSON.dump(to_hash) end |