lib/fog/azurerm/models/resources/dependency.rb in fog-azure-rm-0.1.1 vs lib/fog/azurerm/models/resources/dependency.rb in fog-azure-rm-0.1.2
- old
+ new
@@ -1,27 +1,27 @@
-module Fog
- module Resources
- class AzureRM
- # Dependency model class
- class Dependency < Fog::Model
- attribute :id
- attribute :resource_name
- attribute :resource_type
- attribute :depends_on
-
- def self.parse(dependency)
- hash = {}
- hash['id'] = dependency.id
- hash['resource_name'] = dependency.resource_name
- hash['resource_type'] = dependency.resource_type
-
- hash['depends_on'] = []
- dependency.depends_on.each do |sub_dependency|
- dependency_obj = Fog::Resources::AzureRM::Dependency.new
- hash['depends_on'] << dependency_obj.merge_attributes(Fog::Resources::AzureRM::Dependency.parse(sub_dependency))
- end if dependency.respond_to?('depends_on')
- hash
- end
- end
- end
- end
-end
+module Fog
+ module Resources
+ class AzureRM
+ # Dependency model class
+ class Dependency < Fog::Model
+ attribute :id
+ attribute :resource_name
+ attribute :resource_type
+ attribute :depends_on
+
+ def self.parse(dependency)
+ hash = {}
+ hash['id'] = dependency.id
+ hash['resource_name'] = dependency.resource_name
+ hash['resource_type'] = dependency.resource_type
+
+ hash['depends_on'] = []
+ dependency.depends_on.each do |sub_dependency|
+ dependency_obj = Fog::Resources::AzureRM::Dependency.new
+ hash['depends_on'] << dependency_obj.merge_attributes(Fog::Resources::AzureRM::Dependency.parse(sub_dependency))
+ end if dependency.respond_to?('depends_on')
+ hash
+ end
+ end
+ end
+ end
+end