Class: Nis::Struct::NamespaceMetaDataPair

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/namespace_meta_data_pair.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#metaString

Returns the current value of meta.

Returns:

  • (String)

    the current value of meta



5
6
7
# File 'lib/nis/struct/namespace_meta_data_pair.rb', line 5

def meta
  @meta
end

#namespaceString

Returns the current value of namespace.

Returns:

  • (String)

    the current value of namespace



5
6
7
# File 'lib/nis/struct/namespace_meta_data_pair.rb', line 5

def namespace
  @namespace
end

Class Method Details

.build(meta:, namespace:) ⇒ Object



9
10
11
12
13
14
# File 'lib/nis/struct/namespace_meta_data_pair.rb', line 9

def self.build(meta:, namespace:)
  new(
    meta: NamespaceMetaData.build(meta),
    namespace: Namespace.build(namespace)
  )
end