Class: Kameleoon::RealTime::RealTimeEvent
- Inherits:
-
Object
- Object
- Kameleoon::RealTime::RealTimeEvent
- Defined in:
- lib/kameleoon/real_time/real_time_event.rb
Overview
RealTimeEvent contains information about timestamp when configuration was updated. Timestamp parameter is used to fetch the latest configuration.
Instance Attribute Summary collapse
-
#time_stamp ⇒ Object
readonly
Returns the value of attribute time_stamp.
Instance Method Summary collapse
-
#initialize(event_dict) ⇒ RealTimeEvent
constructor
Parametrized initializer.
Constructor Details
#initialize(event_dict) ⇒ RealTimeEvent
Parametrized initializer. Gets the new time stamp from a JSON message.
17 18 19 |
# File 'lib/kameleoon/real_time/real_time_event.rb', line 17 def initialize(event_dict) @time_stamp = event_dict['ts'] end |
Instance Attribute Details
#time_stamp ⇒ Object (readonly)
Returns the value of attribute time_stamp.
11 12 13 |
# File 'lib/kameleoon/real_time/real_time_event.rb', line 11 def time_stamp @time_stamp end |