Module: Radar
- Defined in:
- lib/radar.rb,
lib/radar/trip.rb,
lib/radar/user.rb,
lib/radar/event.rb,
lib/radar/track.rb,
lib/radar/version.rb,
lib/radar/geofence.rb,
lib/radar/api/client.rb,
lib/radar/api/resource.rb,
lib/radar/api/errors/error.rb,
lib/radar/api/nested_resource.rb,
lib/radar/api/errors/usage_error.rb,
lib/radar/api/errors/conflict_error.rb,
lib/radar/api/errors/forbidden_error.rb,
lib/radar/api/errors/not_found_error.rb,
lib/radar/api/errors/bad_request_error.rb,
lib/radar/api/errors/unavailable_error.rb,
lib/radar/api/errors/unauthorized_error.rb,
lib/radar/api/errors/too_many_requests_error.rb,
lib/radar/api/errors/unprocessable_entity_error.rb
Defined Under Namespace
Modules: API Classes: Event, Geofence, Track, Trip, User
Constant Summary collapse
- VERSION =
'0.1.2'.freeze
Class Attribute Summary collapse
-
.api_host ⇒ Object
Returns the value of attribute api_host.
-
.secret_token ⇒ Object
Returns the value of attribute secret_token.
-
.use_ssl ⇒ Object
Returns the value of attribute use_ssl.
Class Method Summary collapse
Class Attribute Details
.api_host ⇒ Object
Returns the value of attribute api_host.
37 38 39 |
# File 'lib/radar.rb', line 37 def api_host @api_host end |
.secret_token ⇒ Object
Returns the value of attribute secret_token.
37 38 39 |
# File 'lib/radar.rb', line 37 def secret_token @secret_token end |
.use_ssl ⇒ Object
Returns the value of attribute use_ssl.
37 38 39 |
# File 'lib/radar.rb', line 37 def use_ssl @use_ssl end |
Class Method Details
.api_resources ⇒ Object
39 40 41 42 43 |
# File 'lib/radar.rb', line 39 def api_resources @api_resources ||= API::Resource.descendants.each_with_object({}) do |descendant, resources| resources[descendant::RESOURCE_NAME[:plural]] = descendant end.freeze end |