Sha256: 49398c0deaa8df0d008a2f953ce603810a9dbe9d34817f41e64867e1c013ac35
Contents?: true
Size: 983 Bytes
Versions: 1
Compression:
Stored size: 983 Bytes
Contents
module Fog module Compute class DigitalOcean class Real def get_image_details(image_id) request( :expects => [200], :method => 'GET', :path => "/v2/images/#{image_id}" ) end end # noinspection RubyStringKeysInHashInspection class Mock def get_server_details(_) response = Excon::Response.new response.status = 200 response.body = { 'image' => { 'id' => 7555620, 'name' => 'Nifty New Snapshot', 'distribution' => 'Ubuntu', 'slug' => null, 'public' => false, 'regions' => [ 'nyc2', 'nyc2' ], 'created_at' => '2014-11-04T22:23:02Z', 'min_disk_size' => 20 } } response end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-digitalocean-0.1.0 | lib/fog/digitalocean/requests/compute/get_image_details.rb |