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



10
11
12
# File 'lib/fog/joyent/models/compute/flavors.rb', line 10

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

#get(id) ⇒ Object



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

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