Sha256: e0191889329b679b7f98ea3395450f43642a6113afd53d3a252acb8f9386c799
Contents?: true
Size: 805 Bytes
Versions: 1
Compression:
Stored size: 805 Bytes
Contents
require 'aptible/auth' module Aptible module Api class Account < Resource has_many :apps has_many :databases has_many :disks has_many :services field :id field :type field :name field :handle field :number field :type field :activated, type: Aptible::Resource::Boolean field :syslog_host field :syslog_port field :created_at, type: Time field :updated_at, type: Time def production? type == 'production' end def operations # TODO: Implement /accounts/:id/operations [] end def organization auth = Aptible::Auth::Organization.new(token: token, headers: headers) auth.find_by_url(links['organization'].href) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aptible-api-0.5.3 | lib/aptible/api/account.rb |