Module: ConfigStore::AccountAPIMethods
- Included in:
- API
- Defined in:
- lib/configstore/apis/account_api_methods.rb
Instance Method Summary collapse
- #create_account ⇒ Object
- #delete_account(account_uuid) ⇒ Object
- #get_account(account_uuid) ⇒ Object
- #list_accounts ⇒ Object
Instance Method Details
#create_account ⇒ Object
16 17 18 19 20 |
# File 'lib/configstore/apis/account_api_methods.rb', line 16 def create_account return with_response_handling do self.class.post("/accounts", @options) end end |
#delete_account(account_uuid) ⇒ Object
22 23 24 25 26 |
# File 'lib/configstore/apis/account_api_methods.rb', line 22 def delete_account(account_uuid) return with_response_handling do self.class.delete("/accounts/#{account_uuid}", @options) end end |
#get_account(account_uuid) ⇒ Object
10 11 12 13 14 |
# File 'lib/configstore/apis/account_api_methods.rb', line 10 def get_account(account_uuid) return with_response_handling do self.class.get("/accounts/#{account_uuid}", @options) end end |
#list_accounts ⇒ Object
4 5 6 7 8 |
# File 'lib/configstore/apis/account_api_methods.rb', line 4 def list_accounts return with_response_handling do self.class.get("/accounts", @options) end end |