Class: PostgresPR::Connection::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/postgres-pr/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rows = [], fields = []) ⇒ Result

Returns a new instance of Result.



78
79
80
# File 'lib/postgres-pr/connection.rb', line 78

def initialize(rows=[], fields=[])
  @rows, @fields = rows, fields
end

Instance Attribute Details

#fieldsObject

Returns the value of attribute fields.



77
78
79
# File 'lib/postgres-pr/connection.rb', line 77

def fields
  @fields
end

#rowsObject

Returns the value of attribute rows.



77
78
79
# File 'lib/postgres-pr/connection.rb', line 77

def rows
  @rows
end