Class: Nl::Raw::Endpoint
- Inherits:
-
Object
- Object
- Nl::Raw::Endpoint
- Defined in:
- nl/lib/nl/raw/protocol.rb
Overview
A generated raw Netlink family bound to its fixed wire identity.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
Instance Method Summary collapse
- #frame_type(message_class) ⇒ Object
-
#initialize(definition) ⇒ Endpoint
constructor
A new instance of Endpoint.
- #multicast_group_id(name, value) ⇒ Object
- #name ⇒ Object
Constructor Details
#initialize(definition) ⇒ Endpoint
Returns a new instance of Endpoint.
20 21 22 |
# File 'nl/lib/nl/raw/protocol.rb', line 20 def initialize(definition) @definition = definition end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
18 19 20 |
# File 'nl/lib/nl/raw/protocol.rb', line 18 def definition @definition end |
Instance Method Details
#frame_type(message_class) ⇒ Object
25 |
# File 'nl/lib/nl/raw/protocol.rb', line 25 def frame_type() = ::TYPE |
#multicast_group_id(name, value) ⇒ Object
27 28 29 30 |
# File 'nl/lib/nl/raw/protocol.rb', line 27 def multicast_group_id(name, value) value or raise UnresolvedMulticastGroupError, "multicast group #{name.inspect} has no fixed ID" end |
#name ⇒ Object
24 |
# File 'nl/lib/nl/raw/protocol.rb', line 24 def name = @definition::NAME |