Class: Nis::Struct::MosaicDefinition

Inherits:
Object
  • Object
show all
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

#idString

Returns the current value of id

Returns:

  • (String)

    the current value of id


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


12
13
14
15
16
17
# File 'lib/nis/struct/mosaic_definition.rb', line 12

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