Sha256: 57468dd7094509844dc398b43b049cc8c9f745db0989264b7c33fc87c112c1fe
Contents?: true
Size: 452 Bytes
Versions: 2
Compression:
Stored size: 452 Bytes
Contents
module Azure module ServiceRuntime class Role attr_accessor :name, :instances def initialize(node) self.name = node["name"] self.instances = node.css('Instances > Instance').inject({}) do |hash, instance_xml| role_instance = RoleInstance.new(instance_xml) role_instance.role_name = self.name hash[role_instance.id] = role_instance hash end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
azure-0.1.1 | lib/azure/service_runtime/role.rb |
azure-0.1.0 | lib/azure/service_runtime/role.rb |