Class: PGresult

Inherits:
Object show all
Defined in:
lib/cartodb-rb-client/cartodb/types/pg_result.rb

Instance Method Summary collapse

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/cartodb-rb-client/cartodb/types/pg_result.rb', line 2

def empty?
  to_a.empty?
end

#itemsObject



6
7
8
# File 'lib/cartodb-rb-client/cartodb/types/pg_result.rb', line 6

def items
  to_a
end

#sampleObject



10
11
12
# File 'lib/cartodb-rb-client/cartodb/types/pg_result.rb', line 10

def sample
  to_a.sample
end

#sizeObject



14
15
16
# File 'lib/cartodb-rb-client/cartodb/types/pg_result.rb', line 14

def size
  to_a.size
end