Class: Muni::Stop

Inherits:
Base
  • Object
show all
Defined in:
lib/muni/stop.rb

Instance Method Summary collapse

Instance Method Details

#predictionsObject



6
7
8
9
10
11
# File 'lib/muni/stop.rb', line 6

def predictions
  stop = Stop.send(:fetch, :predictions, r: route_tag, d: direction, s: tag)
  available_predictions(stop).collect do |pred|
    Prediction.new(pred)
  end
end