module ConfigStore::AccountClientMethods
Public Instance Methods
create_account()
click to toggle source
# File lib/configstore/clients/account_client_methods.rb, line 14 def create_account raw_result = @api.create_account return ConfigStore::Account.from_api_hash(raw_result["account"]), ConfigStore::Token.from_api_hash(raw_result["token"]) end
delete_account(account_uuid)
click to toggle source
# File lib/configstore/clients/account_client_methods.rb, line 19 def delete_account(account_uuid) return @api.delete_account(account_uuid) end
get_account(account_uuid)
click to toggle source
# File lib/configstore/clients/account_client_methods.rb, line 10 def get_account(account_uuid) return ConfigStore::Account.from_api_hash(@api.get_account(account_uuid)) end
list_accounts()
click to toggle source
# File lib/configstore/clients/account_client_methods.rb, line 4 def list_accounts return @api.list_accounts.map do |raw_account| next(ConfigStore::Account.from_api_hash(raw_account)) end end