Class: Platform

Inherits:
Object
  • Object
show all
Defined in:
lib/model/platform.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(platform) ⇒ Platform

Returns a new instance of Platform.



8
9
10
11
# File 'lib/model/platform.rb', line 8

def initialize platform
  @stop = Stop.new(platform["stop"])
  @direction = Direction.new(platform["direction"])
end

Instance Attribute Details

#directionObject (readonly)

Returns the value of attribute direction.



6
7
8
# File 'lib/model/platform.rb', line 6

def direction
  @direction
end

#stopObject (readonly)

Returns the value of attribute stop.



6
7
8
# File 'lib/model/platform.rb', line 6

def stop
  @stop
end