Class: QueryConsole::SqlLimiter::LimitResult

Inherits:
Object
  • Object
show all
Defined in:
app/services/query_console/sql_limiter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sqlObject (readonly)

Returns the value of attribute sql.



4
5
6
# File 'app/services/query_console/sql_limiter.rb', line 4

def sql
  @sql
end

#truncatedObject (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

Returns:

  • (Boolean)


11
12
13
# File 'app/services/query_console/sql_limiter.rb', line 11

def truncated?
  @truncated
end