Class: ActiveRecord::Enum::EnumType
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Type::Value
|
|
Instance Chain:
self,
Type::Value
|
|
Inherits: |
Type::Value
|
Defined in: | activerecord/lib/active_record/enum.rb |
Class Method Summary
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(name, mapping, subtype, raise_on_invalid_values: true) ⇒ EnumType
Instance Attribute Details
#mapping (readonly, private)
[ GitHub ]# File 'activerecord/lib/active_record/enum.rb', line 213
attr_reader :name, :mapping
#name (readonly, private)
[ GitHub ]# File 'activerecord/lib/active_record/enum.rb', line 213
attr_reader :name, :mapping
#subtype (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/enum.rb', line 210
attr_reader :subtype
#type (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/enum.rb', line 171
delegate :type, to: :subtype