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_idObject



19
20
21
# File 'lib/guardian.rb', line 19

def 
  @account_id
end

.account_id=(val) ⇒ Object



15
16
17
# File 'lib/guardian.rb', line 15

def (val)
  @account_id = val
end

.systemsObject

Raises:

  • (RuntimeError)


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 

  get("/accounts/#{}/systems").parsed_response
end