struct Prostore::Schema::EnumMember

Overview

A single Crystal enum member captured from a field declaration whose type resolves to an Enum subclass (ADR-0016, ADR-0017). Each member carries:

Defined in:

prostore/schema/enum_member.cr:20
prostore/schema/enum_member.cr:25

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, value : Int64, wire_name : String = "") #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(name _name = @name, value _value = @value, wire_name _wire_name = @wire_name) #

[View source]
def name : String #

def value : Int64 #

def wire_name : String #

When constructed without an explicit wire_name, fall back to the source-level name so existing call sites and bookkeeping rows that predate ADR-0017 stay valid.


[View source]