Sha256: 9c05add4fc2598c0a544a554ed1f9b1ca2755480d1606edc0f69aef58dc320da
Contents?: true
Size: 756 Bytes
Versions: 38
Compression:
Stored size: 756 Bytes
Contents
module Fog module Slicehost class Real require 'fog/slicehost/parsers/get_flavors' # Get list of flavors # # ==== Returns # * response<~Excon::Response>: # * body<~Array>: # * 'id'<~Integer> - Id of the flavor # * 'name'<~String> - Name of the flavor # * 'price'<~Integer> - Price in cents # * 'ram'<~Integer> - Amount of ram for the flavor def get_flavors request( :expects => 200, :method => 'GET', :parser => Fog::Parsers::Slicehost::GetFlavors.new, :path => 'flavors.xml' ) end end class Mock def get_flavors Fog::Mock.not_implemented end end end end
Version data entries
38 entries across 38 versions & 2 rubygems