Class: Plushie::Event::Timer
- Inherits:
-
Data
- Object
- Data
- Plushie::Event::Timer
- Defined in:
- lib/plushie/event.rb,
sig/plushie/event.rbs
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 Method Summary collapse
-
#initialize ⇒ Timer
constructor
A new instance of Timer.
- #with ⇒ Timer
Constructor Details
#initialize ⇒ Timer
Returns a new instance of Timer.
168 |
# File 'sig/plushie/event.rbs', line 168
def initialize: (tag: Symbol, timestamp: Integer) -> void
|
Instance Attribute Details
#tag ⇒ Object (readonly)
Returns the value of attribute tag
342 343 344 |
# File 'lib/plushie/event.rb', line 342 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.
342 |
# File 'lib/plushie/event.rb', line 342 Timer = Data.define(:tag, :timestamp) |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp
342 343 344 |
# File 'lib/plushie/event.rb', line 342 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.
342 |
# File 'lib/plushie/event.rb', line 342 Timer = Data.define(:tag, :timestamp) |