Sha256: 7274e277e344c5bfa7040dd7b3de4042f5caa5b6b732bc2a6865604258aa170f
Contents?: true
Size: 741 Bytes
Versions: 7
Compression:
Stored size: 741 Bytes
Contents
module Fog module Compute class Slicehost class Real require 'fog/compute/parsers/slicehost/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
7 entries across 7 versions & 3 rubygems