Class: Swarm::Observers::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/swarm/observers/base.rb

Direct Known Subclasses

Logger

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ Base

Returns a new instance of Base.



11
12
13
# File 'lib/swarm/observers/base.rb', line 11

def initialize(command)
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



9
10
11
# File 'lib/swarm/observers/base.rb', line 9

def command
  @command
end

Instance Method Details

#after_actionObject



16
# File 'lib/swarm/observers/base.rb', line 16

def after_action; end

#before_actionObject



15
# File 'lib/swarm/observers/base.rb', line 15

def before_action; end