Class: Kameleoon::Device
- Inherits:
-
DuplicationUnsafeData
- Object
- Data
- DuplicationUnsafeData
- Kameleoon::Device
- Defined in:
- lib/kameleoon/data/device.rb
Overview
Device uses for sending deviceType parameter for tracking calls
Instance Attribute Summary collapse
-
#device_type ⇒ Object
readonly
Returns the value of attribute device_type.
Attributes inherited from Data
Instance Method Summary collapse
-
#initialize(device_type) ⇒ Device
constructor
A new instance of Device.
- #obtain_full_post_text_line ⇒ Object
Methods inherited from Data
Constructor Details
Instance Attribute Details
#device_type ⇒ Object (readonly)
Returns the value of attribute device_type.
16 17 18 |
# File 'lib/kameleoon/data/device.rb', line 16 def device_type @device_type end |
Instance Method Details
#obtain_full_post_text_line ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/kameleoon/data/device.rb', line 23 def obtain_full_post_text_line params = { eventType: 'staticData', deviceType: @device_type, nonce: nonce } Kameleoon::Network::UriHelper.encode_query(params) end |