Class: Fog::Compute::Packet::HardwareReservations
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Packet::HardwareReservations
- Defined in:
- lib/fog/compute/packet/models/hardware_reservations.rb
Overview
HardwareReservations Collection
Instance Method Summary collapse
Instance Method Details
#all(project_id, params = {}) ⇒ Object
10 11 12 13 |
# File 'lib/fog/compute/packet/models/hardware_reservations.rb', line 10 def all(project_id, params = {}) response = service.list_hardware_reservations(project_id, params) load(response.body["hardware_reservations"]) end |
#get(id) ⇒ Object
15 16 17 18 |
# File 'lib/fog/compute/packet/models/hardware_reservations.rb', line 15 def get(id) response = service.get_hardware_reservation(id) new(response.body) end |