diff options
| author | Teddy Wing | 2018-03-08 11:44:13 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2018-03-14 16:38:39 +0100 | 
| commit | fc1ca7bf99810717c1e64fb0c8654c5489d389ef (patch) | |
| tree | cdefbfb1d90e1dc9d3d1cfb4e01e7734b79e1cf7 /lib/way_cost.rb | |
| parent | 6aa3c52c786717a709b1069583b5ffc75ef0b698 (diff) | |
| download | chouette-core-fc1ca7bf99810717c1e64fb0c8654c5489d389ef.tar.bz2 | |
Create `WayCost`
A data class to hold the distance and time cost required to go between
departure and arrival points.
Refs #6095
Diffstat (limited to 'lib/way_cost.rb')
| -rw-r--r-- | lib/way_cost.rb | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/lib/way_cost.rb b/lib/way_cost.rb new file mode 100644 index 000000000..d088b3483 --- /dev/null +++ b/lib/way_cost.rb @@ -0,0 +1,15 @@ +class WayCost +  def initialize( +    departure:, +    arrival:, +    distance:, +    time:, +    id:, +  ) +    @departure = departure +    @arrival = arrival +    @distance = distance +    @time = time +    @id = id +  end +end | 
