Class: Zaptec::Charger
- Inherits:
-
Object
- Object
- Zaptec::Charger
- Defined in:
- lib/zaptec/charger.rb
Instance Method Summary collapse
- #device_id ⇒ Object
- #device_type ⇒ Object
- #id ⇒ Object
-
#initialize(data) ⇒ Charger
constructor
A new instance of Charger.
- #installation_id ⇒ Object
- #installation_name ⇒ Object
- #name ⇒ Object
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_id ⇒ Object
9 |
# File 'lib/zaptec/charger.rb', line 9 def device_id = @data.fetch(:DeviceId) |
#device_type ⇒ Object
10 |
# File 'lib/zaptec/charger.rb', line 10 def device_type = @data.fetch(:DeviceType) |
#id ⇒ Object
7 |
# File 'lib/zaptec/charger.rb', line 7 def id = @data.fetch(:Id) |
#installation_id ⇒ Object
12 |
# File 'lib/zaptec/charger.rb', line 12 def installation_id = @data.fetch(:InstallationId) |
#installation_name ⇒ Object
11 |
# File 'lib/zaptec/charger.rb', line 11 def installation_name = @data.fetch(:InstallationName) |
#name ⇒ Object
8 |
# File 'lib/zaptec/charger.rb', line 8 def name = @data.fetch(:Name) |