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.


109
110
111
# File 'lib/postgres-pr/connection.rb', line 109

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

Instance Attribute Details

#cmd_tagObject

Returns the value of attribute cmd_tag


108
109
110
# File 'lib/postgres-pr/connection.rb', line 108

def cmd_tag
  @cmd_tag
end

#fieldsObject

Returns the value of attribute fields


108
109
110
# File 'lib/postgres-pr/connection.rb', line 108

def fields
  @fields
end

#rowsObject

Returns the value of attribute rows


108
109
110
# File 'lib/postgres-pr/connection.rb', line 108

def rows
  @rows
end