class Kameleoon::Browser

Attributes

browser[RW]

Public Class Methods

new(browser_type) click to toggle source

@param [BrowserType] browser_type Browser type, can be: CHROME, INTERNET_EXPLORER, FIREFOX, SAFARI, OPERA, OTHER

# File lib/kameleoon/data.rb, line 74
def initialize(browser_type)
  @instance = DataType::BROWSER
  @sent = false
  @browser = browser_type
end

Public Instance Methods

obtain_full_post_text_line() click to toggle source
# File lib/kameleoon/data.rb, line 80
def obtain_full_post_text_line
  nonce = Kameleoon::Utils.generate_random_string(NONCE_LENGTH)
  "eventType=staticData&browser=" + @browser.to_s + "&nonce=" + nonce
end