Class: ModSpox::Messages::Internal::TimerResponse
- Defined in:
- lib/mod_spox/messages/internal/TimerResponse.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
action from timer.
-
#ident ⇒ Object
readonly
response to message with this ID.
Attributes inherited from Response
Instance Method Summary collapse
-
#action_added? ⇒ Boolean
Action was added to timer.
-
#action_removed? ⇒ Boolean
Action was removed from timer.
-
#id ⇒ Object
ID of message this response is for.
-
#initialize(object, action, added, id) ⇒ TimerResponse
constructor
- object
- object to send response to action
-
action removed from timer Notification that action has been removed.
Constructor Details
#initialize(object, action, added, id) ⇒ TimerResponse
- object
-
object to send response to
- action
-
action removed from timer
Notification that action has been removed
12 13 14 15 16 17 |
# File 'lib/mod_spox/messages/internal/TimerResponse.rb', line 12 def initialize(object, action, added, id) super(object) @action = action @added = added @ident = id end |
Instance Attribute Details
#action ⇒ Object (readonly)
action from timer
6 7 8 |
# File 'lib/mod_spox/messages/internal/TimerResponse.rb', line 6 def action @action end |
#ident ⇒ Object (readonly)
response to message with this ID
8 9 10 |
# File 'lib/mod_spox/messages/internal/TimerResponse.rb', line 8 def ident @ident end |
Instance Method Details
#action_added? ⇒ Boolean
Action was added to timer
19 20 21 |
# File 'lib/mod_spox/messages/internal/TimerResponse.rb', line 19 def action_added? return @added end |
#action_removed? ⇒ Boolean
Action was removed from timer
23 24 25 |
# File 'lib/mod_spox/messages/internal/TimerResponse.rb', line 23 def action_removed? return !@added end |
#id ⇒ Object
ID of message this response is for
27 28 29 |
# File 'lib/mod_spox/messages/internal/TimerResponse.rb', line 27 def id @ident end |