Method: DbBrowser::ConnectionMan::Result#initialize
- Defined in:
- lib/dbbrowser/connection.rb
#initialize(opts = {}) ⇒ Result
Returns a new instance of Result.
232 233 234 235 236 237 238 239 240 241 |
# File 'lib/dbbrowser/connection.rb', line 232 def initialize( opts={} ) if opts[:error] @error = opts[:error] else @rows = opts[:rows] # @count = opts[:count] || @rows.size # @pages = opts[:pages] || 1 # @fields = opts[:fields] end end |