Class: Nem::Endpoint::Mosaic

Inherits:
Base
  • Object
show all
Defined in:
lib/nem/endpoint/mosaic.rb

Instance Method Summary collapse

Methods inherited from Base

#current_node, #initialize, #next_node!, #request, #request!

Constructor Details

This class inherits a constructor from Nem::Endpoint::Base

Instance Method Details

#supply(mosaic_id) ⇒ Nem::Model::MosaicSupply



6
7
8
9
10
# File 'lib/nem/endpoint/mosaic.rb', line 6

def supply(mosaic_id)
  request!(:get, '/mosaic/supply', mosaicId: mosaic_id) do |res|
    Nem::Model::MosaicSupply.new_from_mosaic_supply(res)
  end
end