Method: Ambient::Device#initialize

Defined in:
lib/ambient/device.rb

#initialize(mac_address, info, last_data) ⇒ Device

Create a new Device instance

Parameters:

  • mac_address (String)

    the mac address of the device

  • info (Ambient::DeviceInfo)

    information about the device

  • last_data (Hash)

    the latest measurement data from the device



30
31
32
33
34
# File 'lib/ambient/device.rb', line 30

def initialize(mac_address, info, last_data)
  @mac_address = mac_address
  @info = info
  @last_data = last_data
end