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.



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

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

Instance Attribute Details

#cmd_tagObject

Returns the value of attribute cmd_tag.



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

def cmd_tag
  @cmd_tag
end

#fieldsObject

Returns the value of attribute fields.



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

def fields
  @fields
end

#rowsObject

Returns the value of attribute rows.



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

def rows
  @rows
end