Sha256: 813cbccc7998b4481012fee74102cbd96e005082503402ac88f1d3777f7e0865
Contents?: true
Size: 287 Bytes
Versions: 3
Compression:
Stored size: 287 Bytes
Contents
module Zaptec class Circuit def initialize(data) @data = data.symbolize_keys end def id = @data.fetch(:Id) def max_current = @data.fetch(:MaxCurrent) def chargers @chargers ||= @data.fetch(:Chargers).map { |data| Charger.new(data) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stekker_zaptec-1.2.2 | lib/zaptec/circuit.rb |
stekker_zaptec-1.2.1 | lib/zaptec/circuit.rb |
stekker_zaptec-1.2.0 | lib/zaptec/circuit.rb |