Class: Kameleoon::UserAgent
- Inherits:
-
Object
- Object
- Kameleoon::UserAgent
- Defined in:
- lib/kameleoon/data/user_agent.rb
Overview
UserAgent uses for changing User-Agent header for tracking calls
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ UserAgent
constructor
A new instance of UserAgent.
- #to_s ⇒ Object
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
#value ⇒ Object (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_s ⇒ Object
10 11 12 |
# File 'lib/kameleoon/data/user_agent.rb', line 10 def to_s "UserAgent{value:#{@value}}" end |