Sha256: 37eeaa97858f7fb2ecf4d16de54778ded58058e9a8ceeef3a16c476df8b5f308
Contents?: true
Size: 949 Bytes
Versions: 2
Compression:
Stored size: 949 Bytes
Contents
module Octobat module Plaza class Account < Octobat::APIResource extend Octobat::APIOperations::List include Octobat::APIOperations::Create include Octobat::APIOperations::Update def self.url '/plaza/accounts' end def activate(params = {}, opts = {}) response, api_key = Octobat.request(:patch, activate_url, @api_key, params, opts) refresh_from(response, api_key) end def deactivate(params = {}, opts = {}) response, api_key = Octobat.request(:patch, deactivate_url, @api_key, params, opts) refresh_from(response, api_key) end def list_capabilities(params = {}, opts = {}) Capability.list(params.merge({ :account => id }), {api_key: @api_key}.merge(opts)) end private def activate_url url + '/activate' end def deactivate_url url + '/deactivate' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octobat-2.0.27 | lib/octobat/plaza/account.rb |
octobat-2.0.26 | lib/octobat/plaza/account.rb |