Class: PGArrays::PgArray

Inherits:
Array
  • Object
show all
Defined in:
lib/ar_jdbc_pg_array/querying.rb

Direct Known Subclasses

PgAll, PgAny, PgIncludes

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Array

#pg, #search_all, #search_any, #search_subarray

Constructor Details

#initialize(array, type = nil) ⇒ PgArray

Returns a new instance of PgArray.



20
21
22
23
# File 'lib/ar_jdbc_pg_array/querying.rb', line 20

def initialize(array, type=nil)
  super(array)
  @base_type = type if type
end

Instance Attribute Details

#base_typeObject (readonly)

Returns the value of attribute base_type.



18
19
20
# File 'lib/ar_jdbc_pg_array/querying.rb', line 18

def base_type
  @base_type
end