Class: Nis::Struct::MosaicSupply

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/mosaic_supply.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#idNis::Struct::MosaicId

Returns the current value of id.

Returns:



5
6
7
# File 'lib/nis/struct/mosaic_supply.rb', line 5

def id
  @id
end

#mosaicIdObject

Returns the value of attribute mosaicId.



7
8
9
# File 'lib/nis/struct/mosaic_supply.rb', line 7

def mosaicId
  @mosaicId
end

#supplyInteger

Returns the current value of supply.

Returns:

  • (Integer)

    the current value of supply



5
6
7
# File 'lib/nis/struct/mosaic_supply.rb', line 5

def supply
  @supply
end

Class Method Details

.build(attrs) ⇒ Object



9
10
11
12
# File 'lib/nis/struct/mosaic_supply.rb', line 9

def self.build(attrs)
  attrs[:mosaicId] = MosaicId.build(attrs[:mosaicId])
  new(attrs)
end