Class: Vultr::PlansResource

Inherits:
Resource show all
Defined in:
lib/vultr/resources/plans.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Vultr::Resource

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

#list_metal(**params) ⇒ Object



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