enum BitShares::Blockchain::VoteType

Defined in:

bitshares-crystal/define.cr

Enum Members

Committee = 0_i8
Witness = 1_i8
Worker = 2_i8

Instance Method Summary

Instance methods inherited from struct Enum

pack(io) pack, to_json(json : JSON::Builder) : Nil to_json

Constructor methods inherited from struct Enum

from_graphene_json(json : JSON::Any | Nil, args) : self from_graphene_json, unpack(io) : self unpack

Instance methods inherited from module Graphene::Serialize::Pack(Enum)

pack(io : BinaryIO)
pack
pack
, to_graphene_json(graphene_address_prefix = "") : String to_graphene_json

Class methods inherited from module Graphene::Serialize::Pack(Enum)

from_graphene_json(data : JSON::Any | Nil, graphene_address_prefix = "") from_graphene_json, unpack(data : Bytes) unpack

Instance Method Detail

def committee? #

Returns true if this enum value equals Committee


[View source]
def witness? #

Returns true if this enum value equals Witness


[View source]
def worker? #

Returns true if this enum value equals Worker


[View source]