Class: Nl::Linux::RtLink::AttributeSets::LinkinfoVtiAttrs

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

Defined Under Namespace

Classes: Attribute, Fwmark, Ikey, Link, Local, Okey, Remote

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:



4952
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 4952

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



4958
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 4958

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

Instance Method Details

#fwmark ⇒ Integer

Returns:

  • (Integer)

See Also:



4945
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 4945

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

#ikey ⇒ Integer

Returns:

  • (Integer)

See Also:



4929
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 4929

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

Returns:

  • (Integer)

See Also:



4925
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 4925

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

#local ⇒ String

Returns:

  • (String)

See Also:



4937
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 4937

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

#okey ⇒ Integer

Returns:

  • (Integer)

See Also:



4933
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 4933

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

#remote ⇒ String

Returns:

  • (String)

See Also:



4941
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 4941

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