Class: HCloud::StorageBoxType

Inherits:
Resource
  • Object
show all
Defined in:
lib/hcloud/resources/storage_box_type.rb

Overview

Represents a storage box type

List all storage box types

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

Search storage box types

HCloud::StorageBoxType.where(name: "bx11")
# => #<HCloud::StorageBoxType id: 1, ...>

Find storage box type by ID

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

Class Method Summary collapse

Methods inherited from Resource

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

Constructor Details

This class inherits a constructor from HCloud::Resource

Class Method Details

.clientObject



39
40
41
# File 'lib/hcloud/resources/storage_box_type.rb', line 39

def self.client
  HCloud::Client.connection.storage_box_client
end