Class: CloudControl::API::Account

Inherits:
Core
  • Object
show all
Defined in:
lib/cloudcontrol/api/account.rb

Instance Attribute Summary

Attributes inherited from Core

#client

Instance Method Summary collapse

Methods inherited from Core

#endpoint, #get, #get_simple, #initialize, #log, #org_endpoint, #org_id, #perform, #post, #post_simple, #query_params, #request_query_string, #request_simple_body, #request_xml_body, #simple_params, #single, #xml_params

Constructor Details

This class inherits a constructor from CloudControl::API::Core

Instance Method Details

#list(options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/cloudcontrol/api/account.rb', line 8

def list(options = {})
  org_endpoint '/user/user'
  query_params options
  get_simple
end

#myaccountObject



3
4
5
6
# File 'lib/cloudcontrol/api/account.rb', line 3

def myaccount
  endpoint '/user/myUser'
  get_simple
end