Class: Jets::Shim::Adapter::Base
- Inherits:
-
Object
- Object
- Jets::Shim::Adapter::Base
- Extended by:
- Memoist
- Includes:
- Util::Logging
- Defined in:
- lib/jets/shim/adapter/base.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(event, context = nil, target = nil) ⇒ Base
constructor
A new instance of Base.
Methods included from Util::Logging
Constructor Details
#initialize(event, context = nil, target = nil) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 |
# File 'lib/jets/shim/adapter/base.rb', line 10 def initialize(event, context = nil, target = nil) @event = ActiveSupport::HashWithIndifferentAccess.new(event) @context = context @target = target # IE: cool_event.party end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
9 10 11 |
# File 'lib/jets/shim/adapter/base.rb', line 9 def context @context end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
9 10 11 |
# File 'lib/jets/shim/adapter/base.rb', line 9 def event @event end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
9 10 11 |
# File 'lib/jets/shim/adapter/base.rb', line 9 def target @target end |