Class: Nem::Model::MosaicAttachment

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Nem::Mixin::Assignable
Defined in:
lib/nem/model/mosaic_attachment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Nem::Mixin::Assignable

#initialize

Instance Attribute Details

#mosaic_idObject (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

#propertiesObject (readonly)

Returns the value of attribute properties.



15
16
17
# File 'lib/nem/model/mosaic_attachment.rb', line 15

def properties
  @properties
end

#quantityObject (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

#amountObject



17
18
19
# File 'lib/nem/model/mosaic_attachment.rb', line 17

def amount
  (quantity * (10**properties.divisibility)).to_i
end