Class: Nl::Linux::Lockd::AttributeSets::Server

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

Defined Under Namespace

Classes: Attribute, Gracetime, TcpPort, UdpPort

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:



84
# File 'nl-linux/generated/nl/linux/lockd.rb', line 84

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



90
# File 'nl-linux/generated/nl/linux/lockd.rb', line 90

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

Instance Method Details

#gracetime ⇒ Integer

Returns:

  • (Integer)

See Also:



69
# File 'nl-linux/generated/nl/linux/lockd.rb', line 69

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

#tcp_port ⇒ Integer

Returns:

  • (Integer)

See Also:



73
# File 'nl-linux/generated/nl/linux/lockd.rb', line 73

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

#udp_port ⇒ Integer

Returns:

  • (Integer)

See Also:



77
# File 'nl-linux/generated/nl/linux/lockd.rb', line 77

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