module Metrobus

Metrobus module used to interact with the rest api at svc.metrotransit.org/NexTrip providing providing realtime departure data

Constants

NEXT_TRIP

The REST endpoint for the metro transit realtime departure service

VERSION

Disable mutable constant warning - freezing this breaks bundler rubocop:disable Style/MutableConstant

Public Class Methods

connection() click to toggle source

get REST connection object to use, if non create a new object @return [Object] of type Metrobus::Conenction

# File lib/metrobus.rb, line 23
def connection
  @connection ||= Connection.new
end

Private Instance Methods

connection() click to toggle source

get REST connection object to use, if non create a new object @return [Object] of type Metrobus::Conenction

# File lib/metrobus.rb, line 23
def connection
  @connection ||= Connection.new
end