Class: Map::Tube::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/map/tube/line.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#colorObject

Returns the value of attribute color.



4
5
6
# File 'lib/map/tube/line.rb', line 4

def color
  @color
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/map/tube/line.rb', line 4

def id
  @id
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/map/tube/line.rb', line 4

def name
  @name
end