Class: Worldline::Connect::SDK::V1::Domain::BrowserData
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::BrowserData
- Defined in:
- lib/worldline/connect/sdk/v1/domain/browser_data.rb
Instance Attribute Summary collapse
-
#color_depth ⇒ Integer
The current value of color_depth.
-
#inner_height ⇒ String
The current value of inner_height.
-
#inner_width ⇒ String
The current value of inner_width.
-
#java_enabled ⇒ true/false
The current value of java_enabled.
-
#java_script_enabled ⇒ true/false
The current value of java_script_enabled.
-
#screen_height ⇒ String
The current value of screen_height.
-
#screen_width ⇒ String
The current value of screen_width.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#color_depth ⇒ Integer
Returns the current value of color_depth.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/browser_data.rb', line 19 def color_depth @color_depth end |
#inner_height ⇒ String
Returns the current value of inner_height.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/browser_data.rb', line 19 def inner_height @inner_height end |
#inner_width ⇒ String
Returns the current value of inner_width.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/browser_data.rb', line 19 def inner_width @inner_width end |
#java_enabled ⇒ true/false
Returns the current value of java_enabled.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/browser_data.rb', line 19 def java_enabled @java_enabled end |
#java_script_enabled ⇒ true/false
Returns the current value of java_script_enabled.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/browser_data.rb', line 19 def java_script_enabled @java_script_enabled end |
#screen_height ⇒ String
Returns the current value of screen_height.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/browser_data.rb', line 19 def screen_height @screen_height end |
#screen_width ⇒ String
Returns the current value of screen_width.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/browser_data.rb', line 19 def screen_width @screen_width end |
Instance Method Details
#from_hash(hash) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/worldline/connect/sdk/v1/domain/browser_data.rb', line 48 def from_hash(hash) super if hash.has_key? 'colorDepth' @color_depth = hash['colorDepth'] end if hash.has_key? 'innerHeight' @inner_height = hash['innerHeight'] end if hash.has_key? 'innerWidth' @inner_width = hash['innerWidth'] end if hash.has_key? 'javaEnabled' @java_enabled = hash['javaEnabled'] end if hash.has_key? 'javaScriptEnabled' @java_script_enabled = hash['javaScriptEnabled'] end if hash.has_key? 'screenHeight' @screen_height = hash['screenHeight'] end if hash.has_key? 'screenWidth' @screen_width = hash['screenWidth'] end end |
#to_h ⇒ Hash
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/worldline/connect/sdk/v1/domain/browser_data.rb', line 36 def to_h hash = super hash['colorDepth'] = @color_depth unless @color_depth.nil? hash['innerHeight'] = @inner_height unless @inner_height.nil? hash['innerWidth'] = @inner_width unless @inner_width.nil? hash['javaEnabled'] = @java_enabled unless @java_enabled.nil? hash['javaScriptEnabled'] = @java_script_enabled unless @java_script_enabled.nil? hash['screenHeight'] = @screen_height unless @screen_height.nil? hash['screenWidth'] = @screen_width unless @screen_width.nil? hash end |