Class: Wamupd::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/wamupd/action.rb

Overview

A command wrapper

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

The action to be performed. A Wamupd::ActionType



29
30
31
# File 'lib/wamupd/action.rb', line 29

def action
  @action
end

#recordObject (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