Class: Fog::Compute::Fifo::Packages
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Fifo::Packages
- Defined in:
- lib/fog/fifo/models/compute/packages.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
12 13 14 |
# File 'lib/fog/fifo/models/compute/packages.rb', line 12 def all service.list_packages().body.map{|id| get(id) } end |
#get(id) ⇒ Object
16 17 18 19 |
# File 'lib/fog/fifo/models/compute/packages.rb', line 16 def get(id) data = service.get_package(id).body new(data) end |