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
-
#name ⇒ String
readonly
The PostgreSQL type for 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( = {}) @name = .delete(:name).to_sym super end |
Instance Attribute Details
#name ⇒ String (readonly)
20 21 22 |
# File 'lib/enum_kit/active_record_patches/connection_adapters/postgresql/oid/enum.rb', line 20 def name @name end |