Class: Fog::Compute::Packet::HardwareReservation

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/compute/packet/models/hardware_reservation.rb

Overview

HardwareReservation Model

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ HardwareReservation

Returns a new instance of HardwareReservation.



53
54
55
# File 'lib/fog/compute/packet/models/hardware_reservation.rb', line 53

def initialize(attributes = {})
  super
end

Instance Method Details

#move(project_id) ⇒ Object



57
58
59
60
61
62
# File 'lib/fog/compute/packet/models/hardware_reservation.rb', line 57

def move(project_id)
  requires :id

  response = service.move_hardware_reservation(id, project_id)
  true if response.status == 200
end