Class: Nis::Struct::MosaicDefinition
- Inherits:
-
Object
- Object
- Nis::Struct::MosaicDefinition
- Extended by:
- Forwardable
- Includes:
- Util::Assignable
- Defined in:
- lib/nis/struct/mosaic_definition.rb
Overview
Instance Attribute Summary collapse
-
#creator ⇒ String
The current value of creator.
-
#description ⇒ String
The current value of description.
-
#id ⇒ Nis::Struct::MosaicId
The current value of id.
-
#levy ⇒ Nis::Struct::MosaicLevy
The current value of levy.
-
#properties ⇒ Nis::Struct::MosaicProperties
The current value of properties.
Class Method Summary collapse
Methods included from Util::Assignable
#[], #initialize, #to_hash, #to_json
Instance Attribute Details
#creator ⇒ String
Returns the current value of creator.
8 9 10 |
# File 'lib/nis/struct/mosaic_definition.rb', line 8 def creator @creator end |
#description ⇒ String
Returns the current value of description.
8 9 10 |
# File 'lib/nis/struct/mosaic_definition.rb', line 8 def description @description end |
#id ⇒ Nis::Struct::MosaicId
Returns the current value of id.
8 9 10 |
# File 'lib/nis/struct/mosaic_definition.rb', line 8 def id @id end |
#levy ⇒ Nis::Struct::MosaicLevy
Returns the current value of levy.
8 9 10 |
# File 'lib/nis/struct/mosaic_definition.rb', line 8 def levy @levy end |
#properties ⇒ Nis::Struct::MosaicProperties
Returns the current value of properties.
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 |