Class: Wamupd::Action
- Inherits:
-
Object
- Object
- Wamupd::Action
- Defined in:
- lib/wamupd/action.rb
Overview
A command wrapper
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
The action to be performed.
-
#record ⇒ Object
readonly
The associated record (might be an AvahiService, or whatever else is appropriate).
Instance Method Summary collapse
-
#initialize(action, record = nil) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(action, record = nil) ⇒ Action
Returns a new instance of Action.
35 36 37 38 |
# File 'lib/wamupd/action.rb', line 35 def initialize(action, record=nil) @action=action @record=record end |
Instance Attribute Details
#action ⇒ Object (readonly)
The action to be performed. A Wamupd::ActionType
29 30 31 |
# File 'lib/wamupd/action.rb', line 29 def action @action end |
#record ⇒ Object (readonly)
The associated record (might be an AvahiService, or whatever else is appropriate). Might be nil
33 34 35 |
# File 'lib/wamupd/action.rb', line 33 def record @record end |