Sha256: dc1a7c9677a0cd1cce5f1e4b3a86813ec6c9b689a6b2325c070839c5dc497a57

Contents?: true

Size: 313 Bytes

Versions: 4

Compression:

Stored size: 313 Bytes

Contents

module Cloudfuji
  class EventObserver
    attr_accessor :params

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

    def initialize
      @params ||= {}
    end

    def params
      @params
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cloudfuji-0.0.40 lib/cloudfuji/event_observer.rb
cloudfuji-0.0.39 lib/cloudfuji/event_observer.rb
cloudfuji-0.0.38 lib/cloudfuji/event_observer.rb
cloudfuji-0.0.37 lib/cloudfuji/event_observer.rb