class Fog::Compute::Azure::Images
Public Instance Methods
all()
click to toggle source
# File lib/fog/azure/models/compute/images.rb, line 31 def all() images = [] service.list_images.each do |image| hash = {} image.instance_variables.each do |var| hash[var.to_s.delete("@")] = image.instance_variable_get(var) end images << hash end load(images) end
get(identity)
click to toggle source
# File lib/fog/azure/models/compute/images.rb, line 43 def get(identity) all.find { |f| f.name == identity } rescue Fog::Errors::NotFound nil end