Class: Map::Tube::Line
- Inherits:
-
Object
- Object
- Map::Tube::Line
- Defined in:
- lib/map/tube/line.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id, name, color) ⇒ Line
constructor
A new instance of Line.
Constructor Details
#initialize(id, name, color) ⇒ Line
Returns a new instance of Line.
6 7 8 9 10 |
# File 'lib/map/tube/line.rb', line 6 def initialize(id, name, color) @id = id @name = name @color = color end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
4 5 6 |
# File 'lib/map/tube/line.rb', line 4 def color @color end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/map/tube/line.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/map/tube/line.rb', line 4 def name @name end |