Class: PostgresPR::Connection::Result
- Inherits:
-
Object
- Object
- PostgresPR::Connection::Result
- Defined in:
- lib/postgres-pr/connection.rb
Instance Attribute Summary collapse
-
#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.
78 79 80 |
# File 'lib/postgres-pr/connection.rb', line 78 def initialize(rows=[], fields=[]) @rows, @fields = rows, fields end |
Instance Attribute Details
#fields ⇒ Object
Returns the value of attribute fields.
77 78 79 |
# File 'lib/postgres-pr/connection.rb', line 77 def fields @fields end |
#rows ⇒ Object
Returns the value of attribute rows.
77 78 79 |
# File 'lib/postgres-pr/connection.rb', line 77 def rows @rows end |