Class: Nis::Struct::MosaicAttachment
- Inherits:
-
Object
- Object
- Nis::Struct::MosaicAttachment
- Extended by:
- Forwardable
- Defined in:
- lib/nis/struct/mosaic_attachment.rb
Overview
Instance Attribute Summary collapse
-
#fqn ⇒ String
ex) nem.xem.
-
#mosaic_definition ⇒ Object
readonly
Returns the value of attribute mosaic_definition.
-
#quantity ⇒ Integer
The current value of quantity.
Instance Method Summary collapse
-
#initialize(mo_def, quantity) ⇒ MosaicAttachment
constructor
A new instance of MosaicAttachment.
- #to_hash ⇒ Object
Constructor Details
#initialize(mo_def, quantity) ⇒ MosaicAttachment
Returns a new instance of MosaicAttachment.
11 12 13 14 |
# File 'lib/nis/struct/mosaic_attachment.rb', line 11 def initialize(mo_def, quantity) @mosaic_definition = mo_def @quantity = quantity end |
Instance Attribute Details
#fqn ⇒ String
ex) nem.xem
5 6 7 |
# File 'lib/nis/struct/mosaic_attachment.rb', line 5 def fqn @fqn end |
#mosaic_definition ⇒ Object (readonly)
Returns the value of attribute mosaic_definition.
9 10 11 |
# File 'lib/nis/struct/mosaic_attachment.rb', line 9 def mosaic_definition @mosaic_definition end |
#quantity ⇒ Integer
Returns the current value of quantity.
5 6 7 |
# File 'lib/nis/struct/mosaic_attachment.rb', line 5 def quantity @quantity end |
Instance Method Details
#to_hash ⇒ Object
16 17 18 19 |
# File 'lib/nis/struct/mosaic_attachment.rb', line 16 def to_hash { mosaicId: @mosaic_definition.id.to_hash, quantity: @quantity } end |