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