Class: Nis::Struct::MosaicDefinitionMetaDataPair

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/mosaic_definition_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

#metaNis::Struct::MosaicMetaData

Returns the current value of meta.

Returns:

  • (Nis::Struct::MosaicMetaData)

    the current value of meta



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

def meta
  @meta
end

#mosaicNis::Struct::Mosaic

Returns the current value of mosaic.

Returns:



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

def mosaic
  @mosaic
end

Class Method Details

.build(attrs) ⇒ Object



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

def self.build(attrs)
  new(
    meta:   MosaicDefinitionMetaData.build(attrs[:meta]),
    mosaic: MosaicDefinition.build(attrs[:mosaic])
  )
end