Method: Fog::Image::OpenStack::V2::Images#find_by_id

Defined in:
lib/fog/image/openstack/v2/models/images.rb

#find_by_id(id) ⇒ Object Also known as: get



19
20
21
22
23
# File 'lib/fog/image/openstack/v2/models/images.rb', line 19

def find_by_id(id)
  new(service.get_image_by_id(id).body)
rescue Fog::Image::OpenStack::NotFound
  nil
end