Exception: RSQL::MySQLResults::MaxRowsException

Inherits:
RangeError
  • Object
show all
Defined in:
lib/rsql/mysql_results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rows, max) ⇒ MaxRowsException

Returns a new instance of MaxRowsException.



53
54
55
56
# File 'lib/rsql/mysql_results.rb', line 53

def initialize(rows, max)
    @rows = rows
    @max  = max
end

Instance Attribute Details

#maxObject (readonly)

Returns the value of attribute max.



57
58
59
# File 'lib/rsql/mysql_results.rb', line 57

def max
  @max
end

#rowsObject (readonly)

Returns the value of attribute rows.



57
58
59
# File 'lib/rsql/mysql_results.rb', line 57

def rows
  @rows
end