Class: PGresult
- Defined in:
- lib/cartodb-rb-client/cartodb/types/pg_result.rb
Instance Method Summary collapse
Instance Method Details
#empty? ⇒ Boolean
2 3 4 |
# File 'lib/cartodb-rb-client/cartodb/types/pg_result.rb', line 2 def empty? to_a.empty? end |
#items ⇒ Object
6 7 8 |
# File 'lib/cartodb-rb-client/cartodb/types/pg_result.rb', line 6 def items to_a end |
#sample ⇒ Object
10 11 12 |
# File 'lib/cartodb-rb-client/cartodb/types/pg_result.rb', line 10 def sample to_a.sample end |
#size ⇒ Object
14 15 16 |
# File 'lib/cartodb-rb-client/cartodb/types/pg_result.rb', line 14 def size to_a.size end |