Class: PostgresPR::Connection::Result
- Inherits:
-
Object
- Object
- PostgresPR::Connection::Result
- Defined in:
- lib/postgres-pr/connection.rb
Instance Attribute Summary collapse
-
#cmd_tag ⇒ Object
Returns the value of attribute cmd_tag.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#rows ⇒ Object
Returns the value of attribute rows.
Instance Method Summary collapse
-
#initialize(rows = [], fields = []) ⇒ Result
constructor
A new instance of Result.
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_tag ⇒ Object
Returns the value of attribute cmd_tag.
108 109 110 |
# File 'lib/postgres-pr/connection.rb', line 108 def cmd_tag @cmd_tag end |
#fields ⇒ Object
Returns the value of attribute fields.
108 109 110 |
# File 'lib/postgres-pr/connection.rb', line 108 def fields @fields end |
#rows ⇒ Object
Returns the value of attribute rows.
108 109 110 |
# File 'lib/postgres-pr/connection.rb', line 108 def rows @rows end |