Sha256: e4ff09b41ad00a0606f139217e052024eb98b4582aa82bcbbdc4980283a927be
Contents?: true
Size: 374 Bytes
Versions: 3
Compression:
Stored size: 374 Bytes
Contents
module Zaptec class InstallationHierarchy def initialize(data) @data = data.deep_symbolize_keys end def id = @data.fetch(:Id) def name = @data.fetch(:Name) def network_type = Constants.network_type_to_name(@data.fetch(:NetworkType)) def circuits @circuits ||= @data.fetch(:Circuits).map { |data| Circuit.new(data) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stekker_zaptec-1.2.2 | lib/zaptec/installation_hierarchy.rb |
stekker_zaptec-1.2.1 | lib/zaptec/installation_hierarchy.rb |
stekker_zaptec-1.2.0 | lib/zaptec/installation_hierarchy.rb |