aboutsummaryrefslogtreecommitdiffstats
path: root/lib/way_cost.rb
blob: 32ced020532fa46e4cc779fb4669f1452fd3a1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class WayCost
  attr_reader :departure, :arrival

  def initialize(
    departure:,
    arrival:,
    distance: nil,
    time: nil,
    id: nil  # TODO: calculate ID automatically
  )
    @departure = departure
    @arrival = arrival
    @distance = distance
    @time = time
    @id = id
  end
end