Class: PgFuncall::PgType

Inherits:
Object
  • Object
show all
Defined in:
lib/pg_funcall/type_map.rb

Instance Method Summary collapse

Constructor Details

#initialize(pginfo, ar_type) ⇒ PgType

Returns a new instance of PgType.



24
25
26
27
# File 'lib/pg_funcall/type_map.rb', line 24

def initialize(pginfo, ar_type)
  @pginfo = pginfo
  @ar_type = ar_type
end

Instance Method Details

#to_sObject



29
30
31
# File 'lib/pg_funcall/type_map.rb', line 29

def to_s
  array ? "#{name}[]" : name
end