Class: Rafflesia::BiosearchQueryProfileAuditSection
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BiosearchQueryProfileAuditSection
- 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
-
#bytes_scanned ⇒ Object
Returns the value of attribute bytes_scanned.
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#description ⇒ Object
Returns the value of attribute description.
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#is_result_truncated ⇒ Object
Returns the value of attribute is_result_truncated.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#name ⇒ Object
Returns the value of attribute name.
-
#query_ms ⇒ Object
Returns the value of attribute query_ms.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#rows_scanned ⇒ Object
Returns the value of attribute rows_scanned.
-
#sql ⇒ Object
Returns the value of attribute sql.
Instance Method Summary collapse
-
#initialize(json) ⇒ BiosearchQueryProfileAuditSection
constructor
A new instance of BiosearchQueryProfileAuditSection.
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_scanned ⇒ Object
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 |
#columns ⇒ Object
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 |
#description ⇒ Object
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 |
#engine ⇒ Object
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_truncated ⇒ Object
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 |
#limit ⇒ Object
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 |
#name ⇒ Object
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_ms ⇒ Object
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_count ⇒ Object
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 |
#rows ⇒ Object
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_scanned ⇒ Object
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 |
#sql ⇒ Object
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 |