class Nem::Model::MosaicOwned

Attributes

mosaics[R]

Public Class Methods

new_from_mosaic_owned(hash) click to toggle source
# File lib/nem/model/mosaic_owned.rb, line 8
def self.new_from_mosaic_owned(hash)
  mosaics = hash[:data].inject({}) do |memo, mos|
    mosaic = Mosaic.new_from_mosaic(mos)
    memo[mosaic.fqn] = mosaic
    memo
  end
  new(mosaics: mosaics)
end

Public Instance Methods

find(fqn) click to toggle source
# File lib/nem/model/mosaic_owned.rb, line 17
def find(fqn)
  mosaics[fqn]
end