Class: Nis::Struct::MosaicDefinition

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Util::Assignable
Defined in:
lib/nis/struct/mosaic_definition.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

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

Instance Attribute Details

#creatorString

Returns the current value of creator.

Returns:

  • (String)

    the current value of creator



8
9
10
# File 'lib/nis/struct/mosaic_definition.rb', line 8

def creator
  @creator
end

#descriptionString

Returns the current value of description.

Returns:

  • (String)

    the current value of description



8
9
10
# File 'lib/nis/struct/mosaic_definition.rb', line 8

def description
  @description
end

#idNis::Struct::MosaicId

Returns the current value of id.

Returns:



8
9
10
# File 'lib/nis/struct/mosaic_definition.rb', line 8

def id
  @id
end

#levyNis::Struct::MosaicLevy

Returns the current value of levy.

Returns:



8
9
10
# File 'lib/nis/struct/mosaic_definition.rb', line 8

def levy
  @levy
end

#propertiesNis::Struct::MosaicProperties

Returns the current value of properties.

Returns:



8
9
10
# File 'lib/nis/struct/mosaic_definition.rb', line 8

def properties
  @properties
end

Class Method Details

.build(attrs) ⇒ Object



16
17
18
19
20
21
# File 'lib/nis/struct/mosaic_definition.rb', line 16

def self.build(attrs)
  attrs[:id] = MosaicId.build(attrs[:id])
  attrs[:properties] = MosaicProperties.build(attrs[:properties])
  attrs[:levy] = MosaicLevy.build(attrs[:levy]) if attrs[:levy]
  new(attrs)
end