Class: Bushido::EventObserver

Inherits:
Object
  • Object
show all
Defined in:
lib/bushido/event_observer.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEventObserver

Returns a new instance of EventObserver.



12
13
14
# File 'lib/bushido/event_observer.rb', line 12

def initialize
  @params ||= {}
end

Instance Attribute Details

#paramsObject

Returns the value of attribute params.



3
4
5
# File 'lib/bushido/event_observer.rb', line 3

def params
  @params
end

Class Method Details

.inherited(klass) ⇒ Object



5
6
7
8
9
10
# File 'lib/bushido/event_observer.rb', line 5

def self.inherited(klass)
  if Bushido::Platform.on_bushido?
    Bushido::Data.add_observer(klass.new)
  else
  end
end