Class: Slice

Inherits:
Resource
  • Object
show all
Defined in:
lib/slicehost-tools/resources/slice.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.find_by_name(name) ⇒ Object



6
7
8
# File 'lib/slicehost-tools/resources/slice.rb', line 6

def find_by_name(name)                           
  find(:first, :params => { :name => name })
end

Instance Method Details

#flavorObject



11
12
13
# File 'lib/slicehost-tools/resources/slice.rb', line 11

def flavor
  Flavor.find(flavor_id)
end

#imageObject



15
16
17
# File 'lib/slicehost-tools/resources/slice.rb', line 15

def image
  Image.find(image_id)
end