Class: Fog::Compute::Packet::HardwareReservation
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::Packet::HardwareReservation
- Defined in:
- lib/fog/compute/packet/models/hardware_reservation.rb
Overview
HardwareReservation Model
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ HardwareReservation
constructor
A new instance of HardwareReservation.
- #move(project_id) ⇒ Object
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 |