module RubyPtv::Patterns

Public Instance Methods

pattern(run_id, route_type, options = {}) click to toggle source

The stopping pattern of the specified run and route type

Required params:

run_id [Integer]
route_type [Integer]

Optional params must have key matching official PTV param name

# File lib/ruby_ptv/client/patterns.rb, line 10
def pattern(run_id, route_type, options = {})
  data = request("pattern/run/#{run_id}/route_type/#{route_type}", options)
  data.delete("status")
  data
end