Class: Tinker::Event::Environment
- Inherits:
-
Hash
- Object
- Hash
- Tinker::Event::Environment
- Defined in:
- lib/tinker/event/environment.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(client, context, params = {}) ⇒ Environment
constructor
A new instance of Environment.
Constructor Details
#initialize(client, context, params = {}) ⇒ Environment
Returns a new instance of Environment.
4 5 6 7 8 |
# File 'lib/tinker/event/environment.rb', line 4 def initialize(client, context, params = {}) @client = client @context = context super params end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
2 3 4 |
# File 'lib/tinker/event/environment.rb', line 2 def client @client end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
2 3 4 |
# File 'lib/tinker/event/environment.rb', line 2 def context @context end |