Class: Kameleoon::Browser
Overview
Represents browser data for tracking calls
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Attributes inherited from Data
Instance Method Summary collapse
-
#initialize(browser_type, version = Float::NAN) ⇒ Browser
constructor
A new instance of Browser.
- #obtain_full_post_text_line ⇒ Object
Constructor Details
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
19 20 21 |
# File 'lib/kameleoon/data/browser.rb', line 19 def type @type end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
19 20 21 |
# File 'lib/kameleoon/data/browser.rb', line 19 def version @version end |
Instance Method Details
#obtain_full_post_text_line ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/kameleoon/data/browser.rb', line 29 def obtain_full_post_text_line params = { eventType: 'staticData', browserIndex: @type, nonce: nonce } params[:browserVersion] = @version if @version.is_a?(Integer) || (@version.is_a?(Float) && !@version.nan?) Kameleoon::Network::UriHelper.encode_query(params) end |