class Transport::Station
Attributes
coordinate[R]
distance[R]
id[R]
name[R]
score[R]
type[R]
Public Class Methods
new(station)
click to toggle source
# File lib/station.rb, line 11 def initialize(station) @id = station['id'] @name = station['name'] @score = station['score'] @coordinate = Coordinate.new station['coordinate'] @distance = station['distance'] @type = station['type'] end