Module: ActiveInTime
- Defined in:
- lib/active_in_time.rb,
lib/ait_connect/base.rb,
lib/ait_connect/site.rb,
lib/ait_connect/level.rb,
lib/ait_connect/facility.rb,
lib/ait_connect/term_type.rb,
lib/ait_connect/timetable.rb,
lib/ait_connect/instructor.rb,
lib/ait_connect/management.rb,
lib/ait_connect/site_proxy.rb,
lib/ait_connect/facility_type.rb,
lib/ait_connect/timetable_entry.rb,
lib/ait_connect/timetable_proxy.rb,
lib/ait_connect/timetable_session.rb,
lib/ait_connect/timetable_entry_proxy.rb,
lib/ait_connect/facility_type_category.rb,
lib/ait_connect/timetable_session_category.rb
Defined Under Namespace
Classes: Base, EndPointMissing, Error, Facility, FacilityType, FacilityTypeCategory, Instructor, InvalidAuth, Level, Management, ServiceUnavailable, Site, SiteProxy, TermType, Timetable, TimetableEntry, TimetableEntryProxy, TimetableProxy, TimetableSession, TimetableSessionCategory
Constant Summary
collapse
- ERRORS =
{
"invalid_auth" => "OAuth token was not provided or was invalid.",
"param_error" => "A required parameter was missing or a parameter was malformed. This is also used if the resource ID in the path is incorrect.",
"endpoint_error" => "The requested path does not exist.",
"not_authorized" => "Although authentication succeeded, the acting user is not allowed to see this information due to privacy restrictions.",
"rate_limit_exceeded" => "Rate limit for this hour exceeded.",
"deprecated" => "Something about this request is using deprecated functionality, or the response format may be about to change.",
"server_error" => "Server is currently experiencing issues. Check status.activeintime.com for udpates.",
"other" => "Some other type of error occurred."
}
Class Method Summary
collapse
Class Method Details
.log(msg) ⇒ Object
15
16
17
18
|
# File 'lib/active_in_time.rb', line 15
def self.log(msg)
return unless verbose?
puts "[activeintime] #{msg}"
end
|
.verbose=(setting) ⇒ Object
7
8
9
|
# File 'lib/active_in_time.rb', line 7
def self.verbose=(setting)
@verbose = setting
end
|
.verbose? ⇒ Boolean
11
12
13
|
# File 'lib/active_in_time.rb', line 11
def self.verbose?
@verbose
end
|