Method: Bart::Client::Routes#get

Defined in:
lib/bart_api/client/routes.rb

#get(id) ⇒ Object Also known as: find

Return the route whose id matches the given id



14
15
16
17
# File 'lib/bart_api/client/routes.rb', line 14

def get id
  parsed = get_request '/api/route.aspx', query: { cmd: :routeinfo, route: id }
  Route.new parsed['root']['routes']['route']
end