Class: HCloud::ISO

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

Overview

Represents an ISO image

List all ISOs

HCloud::ISO.all
# => [#<HCloud::ISO id: 7631, ...>, ...]

Search ISOs

HCloud::ISO.where(name: "debian-10.10.0-amd64-netinst.iso")
# => #<HCloud::ISO id: 7631, ...>

Find ISO by ID

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

Instance Method Summary collapse

Methods inherited from Resource

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

Constructor Details

This class inherits a constructor from HCloud::Resource

Instance Method Details

#deprecated?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/hcloud/resources/iso.rb', line 34

def deprecated?
  deprecation.present?
end