Module: Guardian
- Includes:
- HTTParty
- Defined in:
- lib/guardian.rb,
lib/guardian/version.rb,
lib/guardian/notifier.rb,
lib/guardian/status_page.rb
Defined Under Namespace
Classes: Notifier, StatusPage
Constant Summary
collapse
- API_URL =
'http://guardianapp.heroku.com'.freeze
- VERSION =
"0.0.1"
Class Method Summary
collapse
Class Method Details
.account_id ⇒ Object
19
20
21
|
# File 'lib/guardian.rb', line 19
def account_id
@account_id
end
|
.account_id=(val) ⇒ Object
15
16
17
|
# File 'lib/guardian.rb', line 15
def account_id=(val)
@account_id = val
end
|
.systems ⇒ Object
23
24
25
26
27
|
# File 'lib/guardian.rb', line 23
def systems
raise RuntimeError, "Guardian is not configured! Set the account_id first." unless account_id
get("/accounts/#{account_id}/systems").parsed_response
end
|