Class: Rafflesia::BiosearchQueryProfileAuditSection

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb

Constant Summary collapse

HASH_ATTRS =
{
  bytes_scanned: :bytes_scanned,
  columns: :columns,
  description: :description,
  engine: :engine,
  is_result_truncated: :is_result_truncated,
  limit: :limit,
  name: :name,
  query_ms: :query_ms,
  row_count: :row_count,
  rows: :rows,
  rows_scanned: :rows_scanned,
  sql: :sql
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ BiosearchQueryProfileAuditSection

Returns a new instance of BiosearchQueryProfileAuditSection.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 37

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @bytes_scanned = hash[:bytes_scanned]
  @columns = (hash[:columns] || [])
  @description = hash[:description]
  @engine = hash[:engine]
  @is_result_truncated = hash[:is_result_truncated]
  @limit = hash[:limit]
  @name = hash[:name]
  @query_ms = hash[:query_ms]
  @row_count = hash[:row_count]
  @rows = (hash[:rows] || []).map { |item| item || {} }
  @rows_scanned = hash[:rows_scanned]
  @sql = hash[:sql]
end

Instance Attribute Details

#bytes_scannedObject

Returns the value of attribute bytes_scanned.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def bytes_scanned
  @bytes_scanned
end

#columnsObject

Returns the value of attribute columns.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def columns
  @columns
end

#descriptionObject

Returns the value of attribute description.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def description
  @description
end

#engineObject

Returns the value of attribute engine.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def engine
  @engine
end

#is_result_truncatedObject

Returns the value of attribute is_result_truncated.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def is_result_truncated
  @is_result_truncated
end

#limitObject

Returns the value of attribute limit.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def limit
  @limit
end

#nameObject

Returns the value of attribute name.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def name
  @name
end

#query_msObject

Returns the value of attribute query_ms.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def query_ms
  @query_ms
end

#row_countObject

Returns the value of attribute row_count.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def row_count
  @row_count
end

#rowsObject

Returns the value of attribute rows.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def rows
  @rows
end

#rows_scannedObject

Returns the value of attribute rows_scanned.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def rows_scanned
  @rows_scanned
end

#sqlObject

Returns the value of attribute sql.



23
24
25
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_section.rb', line 23

def sql
  @sql
end