Class: Fog::Compute::Joyent::Flavors

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

Instance Method Summary collapse

Instance Method Details

#allObject



12
13
14
# File 'lib/fog/joyent/models/compute/flavors.rb', line 12

def all
  load(service.list_packages().body)
end

#get(id) ⇒ Object



16
17
18
19
# File 'lib/fog/joyent/models/compute/flavors.rb', line 16

def get(id)
  data = service.get_package(id).body
  new(data)
end