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



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

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

#organization ⇒ Object



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

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

#production? ⇒ Boolean

Returns:

  • (Boolean)


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

def production?
  type == 'production'
end