Class: Nl::Linux::RtLink::AttributeSets::VfStatsAttrs

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

Defined Under Namespace

Classes: Attribute, Broadcast, Multicast, Pad, RxBytes, RxDropped, RxPackets, TxBytes, TxDropped, TxPackets

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#broadcast ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#multicast ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#rx_bytes ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#rx_dropped ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#rx_packets ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tx_bytes ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tx_dropped ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tx_packets ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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