Class: Kameleoon::Network::ActivityEvent
- Inherits:
-
Object
- Object
- Kameleoon::Network::ActivityEvent
- Defined in:
- lib/kameleoon/network/activity_event.rb
Overview
ActivityEvent represents an activity tracking event.
Constant Summary collapse
- EVENT_TYPE =
'activity'
Instance Attribute Summary collapse
-
#sent ⇒ Object
Returns the value of attribute sent.
Instance Method Summary collapse
-
#initialize ⇒ ActivityEvent
constructor
A new instance of ActivityEvent.
- #obtain_full_post_text_line ⇒ Object
Constructor Details
#initialize ⇒ ActivityEvent
Returns a new instance of ActivityEvent.
17 18 19 20 |
# File 'lib/kameleoon/network/activity_event.rb', line 17 def initialize @sent = false @nonce = Kameleoon::Utils.generate_random_string(Kameleoon::NONCE_LENGTH) end |
Instance Attribute Details
#sent ⇒ Object
Returns the value of attribute sent.
15 16 17 |
# File 'lib/kameleoon/network/activity_event.rb', line 15 def sent @sent end |
Instance Method Details
#obtain_full_post_text_line ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/kameleoon/network/activity_event.rb', line 22 def obtain_full_post_text_line params = { eventType: EVENT_TYPE, nonce: @nonce } UriHelper.encode_query(params) end |