Class: Easee::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/easee/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Configuration

Returns a new instance of Configuration.



3
4
5
# File 'lib/easee/configuration.rb', line 3

def initialize(data)
  @data = data.symbolize_keys
end

Instance Method Details

#max_charger_currentObject



8
# File 'lib/easee/configuration.rb', line 8

def max_charger_current = @data.fetch(:maxChargerCurrent)

#phase_modeObject



7
# File 'lib/easee/configuration.rb', line 7

def phase_mode = @data.fetch(:phaseMode)