Method: Inspec::Resources::AzureResourceGroup#parse_resource

Defined in:
lib/resources/azure/azure_resource_group.rb

#parse_resource(resource) ⇒ Object

Method to parse the resources that have been returned This allows the calculations of the amount of resources to be determined

Parameters:

  • resource (Hash)

    A hashtable representing the resource group

Author:

  • Russell Seymour



81
82
83
84
85
86
87
88
89
# File 'lib/resources/azure/azure_resource_group.rb', line 81

def parse_resource(resource)
  # return a hash of information
  parsed = {
    'name' => resource.name,
    'type' => resource.type,
  }

  parsed
end