Class: HCloud::ServerType

Inherits:
Resource show all
Defined in:
lib/hcloud/resources/server_type.rb

Overview

Represents a server type

List all server types

HCloud::ServerType.all
# => [#<HCloud::ServerType id: 1, ...>, ...]

Search server types

HCloud::ServerType.where(name: "cx11")
# => #<HCloud::ServerType id: 1, ...>

Find server type by ID

HCloud::ServerType.find(1)
# => #<HCloud::ServerType id: 1, ...>

Method Summary

Methods inherited from Resource

#==, attribute, client, #initialize, #inspect, resource_name, #to_h

Constructor Details

This class inherits a constructor from HCloud::Resource