Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Enum

Inherits:
Type::Value
  • Object
show all
Defined in:
lib/enum_kit/active_record_patches/connection_adapters/postgresql/oid/enum.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @enum_type = options.delete(:enum_type).to_sym
  super
end

Instance Attribute Details

#enum_typeString (readonly)

Returns The name of the PostgreSQL type representing the enum.

Returns:

  • (String)

    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