Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Enum
- Inherits:
-
Type::Value
- Object
- Type::Value
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Enum
- Defined in:
- lib/active_record/postgres_enum/extensions.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#enum_name ⇒ Object
readonly
Returns the value of attribute enum_name.
Instance Method Summary collapse
-
#initialize(enum_name:, **kwargs) ⇒ Enum
constructor
A new instance of Enum.
Constructor Details
#initialize(enum_name:, **kwargs) ⇒ Enum
Returns a new instance of Enum.
10 11 12 13 |
# File 'lib/active_record/postgres_enum/extensions.rb', line 10 def initialize(enum_name:, **kwargs) @enum_name = enum_name.to_sym super(**kwargs) end |
Instance Attribute Details
#enum_name ⇒ Object (readonly)
Returns the value of attribute enum_name.
8 9 10 |
# File 'lib/active_record/postgres_enum/extensions.rb', line 8 def enum_name @enum_name end |