Class: Vultr::PlansResource
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
#list(**params) ⇒ Object
3
4
5
6
|
# File 'lib/vultr/resources/plans.rb', line 3
def list(**params)
response = get_request("plans", params: params)
Collection.from_response(response, key: "plans", type: Plan)
end
|
8
9
10
11
|
# File 'lib/vultr/resources/plans.rb', line 8
def list_metal(**params)
response = get_request("plans-metal", params: params)
Collection.from_response(response, key: "plans_metal", type: Plan)
end
|