Class: Progressive::Specification::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/progressive/specification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



33
34
35
# File 'lib/progressive/specification.rb', line 33

def name
  @name
end

#toObject (readonly)

Returns the value of attribute to.



34
35
36
# File 'lib/progressive/specification.rb', line 34

def to
  @to
end