Class: Cloudfuji::EventObserver
- Inherits:
-
Object
- Object
- Cloudfuji::EventObserver
- Defined in:
- lib/cloudfuji/event_observer.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
Class Method Summary collapse
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize ⇒ EventObserver
constructor
A new instance of EventObserver.
Constructor Details
#initialize ⇒ EventObserver
Returns a new instance of EventObserver.
12 13 14 |
# File 'lib/cloudfuji/event_observer.rb', line 12 def initialize @params ||= {} end |
Instance Attribute Details
#params ⇒ Object
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
#data ⇒ Object
16 17 18 |
# File 'lib/cloudfuji/event_observer.rb', line 16 def data @params['data'] end |