Sha256: df0ddbff8e3c98f533eabe25cf8613b14ef68aa7f41a1bc1bf4025481a20146a

Contents?: true

Size: 376 Bytes

Versions: 3

Compression:

Stored size: 376 Bytes

Contents

module Zaptec
  class Charger
    def initialize(data)
      @data = data.symbolize_keys
    end

    def id = @data.fetch(:Id)
    def name = @data.fetch(:Name)
    def device_id = @data.fetch(:DeviceId)
    def device_type = @data.fetch(:DeviceType)
    def installation_name = @data.fetch(:InstallationName)
    def installation_id = @data.fetch(:InstallationId)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stekker_zaptec-1.2.2 lib/zaptec/charger.rb
stekker_zaptec-1.2.1 lib/zaptec/charger.rb
stekker_zaptec-1.2.0 lib/zaptec/charger.rb