Class: Easee::Charger

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

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Charger

Returns a new instance of Charger.



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

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

Instance Method Details

#colorObject



9
# File 'lib/easee/charger.rb', line 9

def color = @data.fetch(:color)

#idObject



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

def id = @data.fetch(:id)

#nameObject



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

def name = @data.fetch(:name)

#product_codeObject



10
# File 'lib/easee/charger.rb', line 10

def product_code = @data.fetch(:productCode)