Module: Renstar::APIClient::Query
- Included in:
- Renstar::APIClient
- Defined in:
- lib/renstar/api_client/query.rb
Overview
Interface to the “Query” portion of the API This can get general info, settings, runtime data, and alerts
Instance Method Summary collapse
Instance Method Details
#alerts ⇒ Object
28 29 30 31 32 |
# File 'lib/renstar/api_client/query.rb', line 28 def alerts get('query/alerts')['alerts'].map do |alert| Alert.new(alert) end end |
#info ⇒ Object
12 13 14 |
# File 'lib/renstar/api_client/query.rb', line 12 def info Info.new(get('query/info')) end |