Class: Nl::Linux::Nfsd::AttributeSets::Server

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

Defined Under Namespace

Classes: Attribute, FhKey, Gracetime, Leasetime, MinThreads, Scope, Threads

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:



381
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 381

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



387
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 387

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

Instance Method Details

#fh_key ⇒ String

Returns:

  • (String)

See Also:



374
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 374

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

#gracetime ⇒ Integer

Returns:

  • (Integer)

See Also:



358
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 358

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

#leasetime ⇒ Integer

Returns:

  • (Integer)

See Also:



362
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 362

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

#min_threads ⇒ Integer

Returns:

  • (Integer)

See Also:



370
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 370

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

#scope ⇒ String

Returns:

  • (String)

See Also:



366
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 366

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

#threads ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



354
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 354

def threads; self[:"threads"].map(&:value); end