lib/td/client/api/account.rb in td-client-0.8.68 vs lib/td/client/api/account.rb in td-client-0.8.69

- old
+ new

@@ -3,10 +3,11 @@ #### ## Account API ## + # @return [Array] def show_account code, body, res = get("/v3/account/show") if code != "200" raise_error("Show account failed", res) end @@ -19,9 +20,12 @@ maximum_cores = a['maximum_cores'].to_i created_at = a['created_at'] return [account_id, plan, storage_size, guaranteed_cores, maximum_cores, created_at] end + # @param [Fixnum] from + # @param [Fixnum] to + # @return [Array] def account_core_utilization(from, to) params = { } params['from'] = from.to_s if from params['to'] = to.to_s if to code, body, res = get("/v3/account/core_utilization", params)