class SDN::Message::ILT2::PostIRConfig

Constants

MSG
PARAMS_LENGTH

Attributes

channels[R]

Public Class Methods

new(channels = nil, **kwargs) click to toggle source
Calls superclass method SDN::Message::new
# File lib/sdn/message/ilt2/post.rb, line 10
def initialize(channels = nil, **kwargs)
  super(**kwargs)
  self.channels = channels
end

Public Instance Methods

channels=(value) click to toggle source
# File lib/sdn/message/ilt2/post.rb, line 15
def channels=(value)
  @channels = value &. & 0xff
end
class_inspect() click to toggle source
# File lib/sdn/message/ilt2/post.rb, line 28
def class_inspect
  ", @channels=#{channels.chr.unpack('b8').first}"
end
params() click to toggle source
# File lib/sdn/message/ilt2/post.rb, line 24
def params
  transform_param(channels)
end
parse(params) click to toggle source
Calls superclass method SDN::Message::parse
# File lib/sdn/message/ilt2/post.rb, line 19
def parse(params)
  super
  self.channels = to_number(params[0])
end