Sha256: 63b1029ff27307b03b807be27bcfb6ab26d8a744226aebcd36aaa31c18b549d9
Contents?: true
Size: 741 Bytes
Versions: 25
Compression:
Stored size: 741 Bytes
Contents
module Fog module Compute class Slicehost class Real require 'fog/slicehost/parsers/compute/get_image' # Get details of an image # # ==== Parameters # * image_id<~Integer> - Id of image to lookup # # ==== Returns # * response<~Excon::Response>: # * body<~Array>: # * 'id'<~Integer> - Id of the image # * 'name'<~String> - Name of the image def get_image(image_id) request( :expects => 200, :method => 'GET', :parser => Fog::Parsers::Compute::Slicehost::GetImage.new, :path => "images/#{image_id}.xml" ) end end end end end
Version data entries
25 entries across 25 versions & 7 rubygems