Class: Easee::Configuration
- Inherits:
-
Object
- Object
- Easee::Configuration
- Defined in:
- lib/easee/configuration.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ Configuration
constructor
A new instance of Configuration.
- #max_charger_current ⇒ Object
- #phase_mode ⇒ Object
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_current ⇒ Object
8 |
# File 'lib/easee/configuration.rb', line 8 def max_charger_current = @data.fetch(:maxChargerCurrent) |
#phase_mode ⇒ Object
7 |
# File 'lib/easee/configuration.rb', line 7 def phase_mode = @data.fetch(:phaseMode) |