Class: Plushie::Event::Timer
- Inherits:
-
Data
- Object
- Data
- Plushie::Event::Timer
- Defined in:
- lib/plushie/event.rb
Overview
Timer events from interval subscriptions. Triggered periodically by Subscription.every at the specified interval.
Instance Attribute Summary collapse
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#tag [Symbol] the tag specified in Subscription.every([Symbol]) ⇒ Object
readonly
Timer events from interval subscriptions.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#timestamp [Integer] monotonic timestamp in milliseconds([Integer]) ⇒ Object
readonly
Timer events from interval subscriptions.
Instance Attribute Details
#tag ⇒ Object (readonly)
Returns the value of attribute tag
291 292 293 |
# File 'lib/plushie/event.rb', line 291 def tag @tag end |
#tag [Symbol] the tag specified in Subscription.every([Symbol]) ⇒ Object (readonly)
Timer events from interval subscriptions. Triggered periodically by Subscription.every at the specified interval.
291 |
# File 'lib/plushie/event.rb', line 291 Timer = Data.define(:tag, :timestamp) |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp
291 292 293 |
# File 'lib/plushie/event.rb', line 291 def @timestamp end |
#timestamp [Integer] monotonic timestamp in milliseconds([Integer]) ⇒ Object (readonly)
Timer events from interval subscriptions. Triggered periodically by Subscription.every at the specified interval.
291 |
# File 'lib/plushie/event.rb', line 291 Timer = Data.define(:tag, :timestamp) |