Class: Tinker::Event::Environment

Inherits:
Hash
  • Object
show all
Defined in:
lib/tinker/event/environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



2
3
4
# File 'lib/tinker/event/environment.rb', line 2

def client
  @client
end

#contextObject (readonly)

Returns the value of attribute context.



2
3
4
# File 'lib/tinker/event/environment.rb', line 2

def context
  @context
end