Sha256: 6ab72706b1649b5ff0e4ade2ca75e99ab57d578a3172440b5d85f7fcf4b8e5f3

Contents?: true

Size: 220 Bytes

Versions: 4

Compression:

Stored size: 220 Bytes

Contents

module Easee
  class Configuration
    def initialize(data)
      @data = data.symbolize_keys
    end

    def phase_mode = @data.fetch(:phaseMode)
    def max_charger_current = @data.fetch(:maxChargerCurrent)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stekker_easee-1.0.2 lib/easee/configuration.rb
stekker_easee-1.0.1 lib/easee/configuration.rb
stekker_easee-1.0.0 lib/easee/configuration.rb
stekker_easee-0.1.0 lib/easee/configuration.rb