Class: Fog::Compute::Fifo::Packages

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/fifo/models/compute/packages.rb

Instance Method Summary collapse

Instance Method Details

#allObject



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