Class: PGArrays::PgArray
- Defined in:
- lib/ar_jdbc_pg_array/querying.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base_type ⇒ Object
readonly
Returns the value of attribute base_type.
Instance Method Summary collapse
-
#initialize(array, type = nil) ⇒ PgArray
constructor
A new instance of PgArray.
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_type ⇒ Object (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 |