class LIFX::LAN::Target

Target is a high-level abstraction for the target of a Message @api private

Attributes

broadcast[R]
device_id[R]
site_id[R]
tag[R]

Public Class Methods

new(device_id: nil, site_id: nil, tag: nil, broadcast: nil) click to toggle source
# File lib/lifx/lan/target.rb, line 8
def initialize(device_id: nil, site_id: nil, tag: nil, broadcast: nil)
  @site_id   = site_id
  @device_id = device_id
  @tag       = tag
  @broadcast = broadcast
end

Public Instance Methods

broadcast?() click to toggle source
# File lib/lifx/lan/target.rb, line 15
def broadcast?
  !!broadcast
end
tag?() click to toggle source
# File lib/lifx/lan/target.rb, line 19
def tag?
  !!tag
end