Class: PgObjects::ParsedObject::EnumType

Inherits:
Base
  • Object
show all
Defined in:
lib/pg_objects/parsed_object/enum_type.rb

Overview

ENUM TYPE object representation (CREATE TYPE ... AS ENUM)

Instance Method Summary collapse

Methods inherited from Base

#initialize, #qualified_name

Constructor Details

This class inherits a constructor from PgObjects::ParsedObject::Base

Instance Method Details

#nameObject



7
8
9
# File 'lib/pg_objects/parsed_object/enum_type.rb', line 7

def name
  extract_name { stmt.create_enum_stmt.type_name.last.string.sval }
end