Class: NPlusInsight::Detection
- Inherits:
-
Struct
- Object
- Struct
- NPlusInsight::Detection
- Defined in:
- lib/n_plus_insight/detection.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#edges ⇒ Object
Returns the value of attribute edges.
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#method ⇒ Object
Returns the value of attribute method.
-
#models ⇒ Object
Returns the value of attribute models.
-
#path ⇒ Object
Returns the value of attribute path.
-
#query_count ⇒ Object
Returns the value of attribute query_count.
-
#query_groups ⇒ Object
Returns the value of attribute query_groups.
-
#request_id ⇒ Object
Returns the value of attribute request_id.
-
#sql ⇒ Object
Returns the value of attribute sql.
-
#suggestions ⇒ Object
Returns the value of attribute suggestions.
-
#total_ms ⇒ Object
Returns the value of attribute total_ms.
-
#tree ⇒ Object
Returns the value of attribute tree.
Instance Method Summary collapse
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def created_at @created_at end |
#edges ⇒ Object
Returns the value of attribute edges
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def edges @edges end |
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def id @id end |
#location ⇒ Object
Returns the value of attribute location
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def location @location end |
#method ⇒ Object
Returns the value of attribute method
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def method @method end |
#models ⇒ Object
Returns the value of attribute models
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def models @models end |
#path ⇒ Object
Returns the value of attribute path
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def path @path end |
#query_count ⇒ Object
Returns the value of attribute query_count
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def query_count @query_count end |
#query_groups ⇒ Object
Returns the value of attribute query_groups
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def query_groups @query_groups end |
#request_id ⇒ Object
Returns the value of attribute request_id
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def request_id @request_id end |
#sql ⇒ Object
Returns the value of attribute sql
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def sql @sql end |
#suggestions ⇒ Object
Returns the value of attribute suggestions
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def suggestions @suggestions end |
#total_ms ⇒ Object
Returns the value of attribute total_ms
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def total_ms @total_ms end |
#tree ⇒ Object
Returns the value of attribute tree
2 3 4 |
# File 'lib/n_plus_insight/detection.rb', line 2 def tree @tree end |
Instance Method Details
#as_json ⇒ Object
7 8 9 |
# File 'lib/n_plus_insight/detection.rb', line 7 def as_json(*) members.to_h { |member| [member, public_send(member)] } end |