Class: Tinker::Event

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

Defined Under Namespace

Classes: Environment

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, environment, params = {}) ⇒ Event

Returns a new instance of Event.



4
5
6
7
8
# File 'lib/tinker/event.rb', line 4

def initialize(name, environment, params = {})
  @name = name
  @environment = environment
  @params = params
end

Instance Attribute Details

#environmentObject

Returns the value of attribute environment.



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

def environment
  @environment
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#paramsObject

Returns the value of attribute params.



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

def params
  @params
end

Instance Method Details

#envObject



10
11
12
# File 'lib/tinker/event.rb', line 10

def env
  environment
end