Module: ConfigStore::AccountClientMethods

Included in:
Client
Defined in:
lib/configstore/clients/account_client_methods.rb

Instance Method Summary collapse

Instance Method Details

#create_accountObject



14
15
16
17
# File 'lib/configstore/clients/account_client_methods.rb', line 14

def 
	raw_result = @api.
	return ConfigStore::Account.from_api_hash(raw_result["account"]), ConfigStore::Token.from_api_hash(raw_result["token"])
end

#delete_account(account_uuid) ⇒ Object



19
20
21
# File 'lib/configstore/clients/account_client_methods.rb', line 19

def ()
	return @api.()
end

#get_account(account_uuid) ⇒ Object



10
11
12
# File 'lib/configstore/clients/account_client_methods.rb', line 10

def ()
	return ConfigStore::Account.from_api_hash(@api.())
end

#list_accountsObject



4
5
6
7
8
# File 'lib/configstore/clients/account_client_methods.rb', line 4

def list_accounts
	return @api.list_accounts.map do ||
		next(ConfigStore::Account.from_api_hash())
	end
end