Class: Zaptec::Charger

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

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Charger

Returns a new instance of Charger.



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

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

Instance Method Details

#device_idObject



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

def device_id = @data.fetch(:DeviceId)

#device_typeObject



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

def device_type = @data.fetch(:DeviceType)

#idObject



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

def id = @data.fetch(:Id)

#installation_idObject



12
# File 'lib/zaptec/charger.rb', line 12

def installation_id = @data.fetch(:InstallationId)

#installation_nameObject



11
# File 'lib/zaptec/charger.rb', line 11

def installation_name = @data.fetch(:InstallationName)

#nameObject



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

def name = @data.fetch(:Name)