module OpenAssets::Protocol::OutputType

Constants

ISSUANCE
MARKER_OUTPUT
TRANSFER
UNCOLORED

Public Class Methods

all() click to toggle source

get all enum.

# File lib/openassets/protocol/output_type.rb, line 11
def self.all
  self.constants.map{|name|self.const_get(name)}
end
output_type_label(type) click to toggle source
# File lib/openassets/protocol/output_type.rb, line 15
def self.output_type_label(type)
  case type
    when UNCOLORED then 'uncolored'
    when MARKER_OUTPUT then 'marker'
    when ISSUANCE then 'issuance'
    when TRANSFER then 'transfer'
    else 'uncolored'
  end
end