Sha256: bb11d5b8c4e4049edd6bbf4a8fdf574f582d70427b8c6c168fb6d761ced543ef
Contents?: true
Size: 1008 Bytes
Versions: 1
Compression:
Stored size: 1008 Bytes
Contents
require 'savon' require 'ratis/config' require 'ratis/core_ext' require 'ratis/closest_stop' require 'ratis/errors' require 'ratis/itinerary' require 'ratis/landmark' require 'ratis/landmark_category' require 'ratis/location' require 'ratis/next_bus' require 'ratis/point_2_point' require 'ratis/request' require 'ratis/route' require 'ratis/route_stops' require 'ratis/schedule' require 'ratis/schedule_group' require 'ratis/schedule_nearby' require 'ratis/schedule_trip' require 'ratis/service' require 'ratis/stop' require 'ratis/timetable' require 'ratis/walk' module Ratis extend self def configure yield config end def config @config ||= Config.new end def valid_latitude?(lat) -90.0 <= lat.to_f and lat.to_f <= 90.0 end def valid_longitude?(lon) -180.0 <= lon.to_f and lon.to_f <= 180.0 end def all_conditions_used?(conditions) raise ArgumentError.new("Conditions not used by this class: #{conditions.keys.inspect}") unless conditions.empty? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ratis-2.5.2.1 | lib/ratis.rb |