Class: QueryConsole::SqlLimiter::LimitResult
- Inherits:
-
Object
- Object
- QueryConsole::SqlLimiter::LimitResult
- Defined in:
- app/services/query_console/sql_limiter.rb
Instance Attribute Summary collapse
-
#sql ⇒ Object
readonly
Returns the value of attribute sql.
-
#truncated ⇒ Object
readonly
Returns the value of attribute truncated.
Instance Method Summary collapse
-
#initialize(sql:, truncated:) ⇒ LimitResult
constructor
A new instance of LimitResult.
- #truncated? ⇒ Boolean
Constructor Details
#initialize(sql:, truncated:) ⇒ LimitResult
Returns a new instance of LimitResult.
6 7 8 9 |
# File 'app/services/query_console/sql_limiter.rb', line 6 def initialize(sql:, truncated:) @sql = sql @truncated = truncated end |
Instance Attribute Details
#sql ⇒ Object (readonly)
Returns the value of attribute sql.
4 5 6 |
# File 'app/services/query_console/sql_limiter.rb', line 4 def sql @sql end |
#truncated ⇒ Object (readonly)
Returns the value of attribute truncated.
4 5 6 |
# File 'app/services/query_console/sql_limiter.rb', line 4 def truncated @truncated end |
Instance Method Details
#truncated? ⇒ Boolean
11 12 13 |
# File 'app/services/query_console/sql_limiter.rb', line 11 def truncated? @truncated end |