class Postmaster::TransitTimes

Public Class Methods

get(params={}) click to toggle source
# File lib/postmaster/transit_times.rb, line 5
def self.get(params={})
  response = Postmaster.request(:post, '/v1/times', params)
  if response[:services].nil?
    return nil
  end
  response[:services].map { |i| Postmaster::TransitTime.construct_from(i) }
end