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.



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

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

Instance Attribute Details

#cmd_tagObject

Returns the value of attribute cmd_tag.



106
107
108
# File 'lib/postgres-pr/connection.rb', line 106

def cmd_tag
  @cmd_tag
end

#fieldsObject

Returns the value of attribute fields.



106
107
108
# File 'lib/postgres-pr/connection.rb', line 106

def fields
  @fields
end

#rowsObject

Returns the value of attribute rows.



106
107
108
# File 'lib/postgres-pr/connection.rb', line 106

def rows
  @rows
end