Class: Kameleoon::UserAgent

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleoon/data/user_agent.rb

Overview

UserAgent uses for changing User-Agent header for tracking calls

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ UserAgent

Returns a new instance of UserAgent.



14
15
16
# File 'lib/kameleoon/data/user_agent.rb', line 14

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'lib/kameleoon/data/user_agent.rb', line 8

def value
  @value
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/kameleoon/data/user_agent.rb', line 10

def to_s
  "UserAgent{value:#{@value}}"
end