Class: Kameleoon::OperatingSystem
- Inherits:
-
DuplicationUnsafeData
- Object
- Data
- DuplicationUnsafeData
- Kameleoon::OperatingSystem
- Defined in:
- lib/kameleoon/data/operating_system.rb
Overview
OperatingSystem contains information about the operating system on the visitor’s device
Instance Attribute Summary collapse
-
#os_type ⇒ Object
readonly
Returns the value of attribute os_type.
Attributes inherited from Data
Instance Method Summary collapse
-
#initialize(os_type) ⇒ OperatingSystem
constructor
A new instance of OperatingSystem.
- #obtain_full_post_text_line ⇒ Object
Methods inherited from Data
Constructor Details
#initialize(os_type) ⇒ OperatingSystem
Returns a new instance of OperatingSystem.
56 57 58 59 |
# File 'lib/kameleoon/data/operating_system.rb', line 56 def initialize(os_type) super(DataType::OPERATING_SYSTEM) @os_type = os_type end |
Instance Attribute Details
#os_type ⇒ Object (readonly)
Returns the value of attribute os_type.
53 54 55 |
# File 'lib/kameleoon/data/operating_system.rb', line 53 def os_type @os_type end |
Instance Method Details
#obtain_full_post_text_line ⇒ Object
61 62 63 64 65 66 67 68 69 |
# File 'lib/kameleoon/data/operating_system.rb', line 61 def obtain_full_post_text_line params = { eventType: 'staticData', os: OperatingSystemType.name_from_type(@os_type), osIndex: @os_type, nonce: nonce } Kameleoon::Network::UriHelper.encode_query(params) end |