Class: Nl::Linux::Nlctrl::AttributeSets::CtrlAttrs

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/nlctrl.rb

Defined Under Namespace

Classes: Attribute, FamilyId, FamilyName, Hdrsize, Maxattr, McastGroups, Op, OpPolicy, Ops, Policy, Version

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



192
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 192

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



198
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 198

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#family_id ⇒ Integer

Returns:

  • (Integer)

See Also:



149
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 149

def family_id; self[:"family_id"]&.value; end

#family_name ⇒ String

Returns:

  • (String)

See Also:



153
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 153

def family_name; self[:"family_name"]&.value; end

#hdrsize ⇒ Integer

Returns:

  • (Integer)

See Also:



161
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 161

def hdrsize; self[:"hdrsize"]&.value; end

#maxattr ⇒ Integer

Returns:

  • (Integer)

See Also:



165
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 165

def maxattr; self[:"maxattr"]&.value; end

#mcast_groups ⇒ Array<AttributeSets::McastGroupAttrs>

Returns:

See Also:



173
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 173

def mcast_groups; self[:"mcast_groups"]&.value; end

#op ⇒ Integer

Returns:

  • (Integer)

See Also:



185
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 185

def op; self[:"op"]&.value; end

#op_policy ⇒ Hash<Integer, AttributeSets::OpPolicyAttrs>

Returns:

See Also:



181
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 181

def op_policy; self[:"op_policy"]&.value; end

#ops ⇒ Array<AttributeSets::OpAttrs>

Returns:

See Also:



169
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 169

def ops; self[:"ops"]&.value; end

#policy ⇒ Hash<Integer, Hash<Integer, AttributeSets::PolicyAttrs>>

Returns:

See Also:



177
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 177

def policy; self[:"policy"]&.value; end

#version ⇒ Integer

Returns:

  • (Integer)

See Also:



157
# File 'nl-linux/generated/nl/linux/nlctrl.rb', line 157

def version; self[:"version"]&.value; end