Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Enum
- Inherits:
-
Type::Value
- Object
- Type::Value
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Enum
- Defined in:
- lib/enum_kit/active_record_patches/connection_adapters/postgresql/oid/enum.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#enum_type ⇒ String
readonly
The name of the PostgreSQL type representing the enum.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Enum
constructor
:nodoc:.
Constructor Details
#initialize(options = {}) ⇒ Enum
:nodoc:
24 25 26 27 |
# File 'lib/enum_kit/active_record_patches/connection_adapters/postgresql/oid/enum.rb', line 24 def initialize( = {}) @enum_type = .delete(:enum_type).to_sym super end |
Instance Attribute Details
#enum_type ⇒ String (readonly)
Returns The name of the PostgreSQL type representing the enum.
20 21 22 |
# File 'lib/enum_kit/active_record_patches/connection_adapters/postgresql/oid/enum.rb', line 20 def enum_type @enum_type end |