Class: Vultr::OperatingSystemsResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/vultr/resources/operating_systems.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/operating_systems.rb', line 3

def list(**params)
  response = get_request("os", params: params)
  Collection.from_response(response, key: "os", type: OperatingSystem)
end