Class: Tinker::Event
- Inherits:
-
Object
- Object
- Tinker::Event
- Defined in:
- lib/tinker/event.rb
Defined Under Namespace
Classes: Environment
Instance Attribute Summary collapse
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#name ⇒ Object
Returns the value of attribute name.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
- #env ⇒ Object
-
#initialize(name, environment, params = {}) ⇒ Event
constructor
A new instance of Event.
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
#environment ⇒ Object
Returns the value of attribute environment.
2 3 4 |
# File 'lib/tinker/event.rb', line 2 def environment @environment end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/tinker/event.rb', line 2 def name @name end |
#params ⇒ Object
Returns the value of attribute params.
2 3 4 |
# File 'lib/tinker/event.rb', line 2 def params @params end |
Instance Method Details
#env ⇒ Object
10 11 12 |
# File 'lib/tinker/event.rb', line 10 def env environment end |