Class: Progressive::Specification::Event
- Inherits:
-
Object
- Object
- Progressive::Specification::Event
- Defined in:
- lib/progressive/specification.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(name, to = nil) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(name, to = nil) ⇒ Event
Returns a new instance of Event.
36 37 38 39 |
# File 'lib/progressive/specification.rb', line 36 def initialize(name, to = nil) @name = name @to = to || name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
33 34 35 |
# File 'lib/progressive/specification.rb', line 33 def name @name end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
34 35 36 |
# File 'lib/progressive/specification.rb', line 34 def to @to end |