Class: Nem::Model::MosaicAttachment
- Inherits:
-
Object
- Object
- Nem::Model::MosaicAttachment
- Extended by:
- Forwardable
- Includes:
- Nem::Mixin::Assignable
- Defined in:
- lib/nem/model/mosaic_attachment.rb
Instance Attribute Summary collapse
-
#mosaic_id ⇒ Object
readonly
Returns the value of attribute mosaic_id.
-
#properties ⇒ Object
readonly
Returns the value of attribute properties.
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
Instance Method Summary collapse
Methods included from Nem::Mixin::Assignable
Instance Attribute Details
#mosaic_id ⇒ Object (readonly)
Returns the value of attribute mosaic_id.
15 16 17 |
# File 'lib/nem/model/mosaic_attachment.rb', line 15 def mosaic_id @mosaic_id end |
#properties ⇒ Object (readonly)
Returns the value of attribute properties.
15 16 17 |
# File 'lib/nem/model/mosaic_attachment.rb', line 15 def properties @properties end |
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
15 16 17 |
# File 'lib/nem/model/mosaic_attachment.rb', line 15 def quantity @quantity end |
Instance Method Details
#amount ⇒ Object
17 18 19 |
# File 'lib/nem/model/mosaic_attachment.rb', line 17 def amount (quantity * (10**properties.divisibility)).to_i end |