Module: RubyPtv::Patterns

Included in:
Client
Defined in:
lib/ruby_ptv/client/patterns.rb

Instance Method Summary collapse

Instance Method Details

#pattern(run_id, route_type, options = {}) ⇒ Object

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



10
11
12
13
14
# 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