Class: Aptible::Api::Account

Inherits:
Api::Resource
  • Object
show all
Defined in:
lib/aptible/api/account.rb

Instance Method Summary collapse

Instance Method Details

#operations ⇒ Object



11
12
13
14
# File 'lib/aptible/api/account.rb', line 11

def operations
  # TODO: Implement /accounts/:id/operations
  []
end

#organization ⇒ Object



16
17
18
19
# File 'lib/aptible/api/account.rb', line 16

def organization
  auth = Aptible::Auth::Resource.new(token: token, headers: headers)
  auth.find_by_url(links['organization'].href)
end

#production? ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/aptible/api/account.rb', line 7

def production?
  type == 'production'
end