Class: Backend::TimelineHelper::Timeline::Step

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/backend/timeline_helper.rb

Direct Known Subclasses

MarkerStep, SideStep

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(at, name) ⇒ Step

Returns a new instance of Step.


95
96
97
98
# File 'app/helpers/backend/timeline_helper.rb', line 95

def initialize(at, name)
  @at = at
  @name = name
end

Instance Attribute Details

#atObject (readonly)

Returns the value of attribute at


93
94
95
# File 'app/helpers/backend/timeline_helper.rb', line 93

def at
  @at
end

#nameObject (readonly)

Returns the value of attribute name


93
94
95
# File 'app/helpers/backend/timeline_helper.rb', line 93

def name
  @name
end

Instance Method Details

#<=>(other) ⇒ Object


100
101
102
# File 'app/helpers/backend/timeline_helper.rb', line 100

def <=>(other)
  at <=> other.at
end