Class: Cloudfuji::EventObserver

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudfuji/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/cloudfuji/event_observer.rb', line 12

def initialize
  @params ||= {}
end

Instance Attribute Details

#paramsObject

Returns the value of attribute params.



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

def params
  @params
end

Class Method Details

.inherited(klass) ⇒ Object



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

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

Instance Method Details

#dataObject



16
17
18
# File 'lib/cloudfuji/event_observer.rb', line 16

def data
  @params['data']
end