Sha256: c4b9bf6233e8612eb11c1e252ecc0340031e9cb978e05e866feb812eb7fba806
Contents?: true
Size: 875 Bytes
Versions: 37
Compression:
Stored size: 875 Bytes
Contents
module Fog module Rackspace module Servers class Real # Get details for image by id # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'id'<~Integer> - Id of the image # * 'name'<~String> - Name of the image # * 'serverId'<~Integer> - Id of server image was created from # * 'status'<~Integer> - Status of image # * 'updated'<~String> - Timestamp of last update def get_image_details(image_id) request( :expects => [200, 203], :method => 'GET', :path => "images/#{image_id}.json" ) end end class Mock def get_image_details(image_id) raise MockNotImplemented.new("Contributions welcome!") end end end end end
Version data entries
37 entries across 37 versions & 1 rubygems