Class: Rafflesia::EvidenceSummary
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::EvidenceSummary
- Defined in:
- lib/rafflesia/annotations/evidence_summary.rb
Constant Summary collapse
- HASH_ATTRS =
{ duration_ms: :duration_ms, input_refs: :input_refs, object_refs: :object_refs, output_refs: :output_refs, row_count: :row_count, warnings_count: :warnings_count }.freeze
Instance Attribute Summary collapse
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#input_refs ⇒ Object
Returns the value of attribute input_refs.
-
#object_refs ⇒ Object
Returns the value of attribute object_refs.
-
#output_refs ⇒ Object
Returns the value of attribute output_refs.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#warnings_count ⇒ Object
Returns the value of attribute warnings_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ EvidenceSummary
constructor
A new instance of EvidenceSummary.
Constructor Details
#initialize(json) ⇒ EvidenceSummary
Returns a new instance of EvidenceSummary.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/annotations/evidence_summary.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @duration_ms = hash[:duration_ms] @input_refs = (hash[:input_refs] || []) @object_refs = (hash[:object_refs] || []) @output_refs = (hash[:output_refs] || []) @row_count = hash[:row_count] @warnings_count = hash[:warnings_count] end |
Instance Attribute Details
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
17 18 19 |
# File 'lib/rafflesia/annotations/evidence_summary.rb', line 17 def duration_ms @duration_ms end |
#input_refs ⇒ Object
Returns the value of attribute input_refs.
17 18 19 |
# File 'lib/rafflesia/annotations/evidence_summary.rb', line 17 def input_refs @input_refs end |
#object_refs ⇒ Object
Returns the value of attribute object_refs.
17 18 19 |
# File 'lib/rafflesia/annotations/evidence_summary.rb', line 17 def object_refs @object_refs end |
#output_refs ⇒ Object
Returns the value of attribute output_refs.
17 18 19 |
# File 'lib/rafflesia/annotations/evidence_summary.rb', line 17 def output_refs @output_refs end |
#row_count ⇒ Object
Returns the value of attribute row_count.
17 18 19 |
# File 'lib/rafflesia/annotations/evidence_summary.rb', line 17 def row_count @row_count end |
#warnings_count ⇒ Object
Returns the value of attribute warnings_count.
17 18 19 |
# File 'lib/rafflesia/annotations/evidence_summary.rb', line 17 def warnings_count @warnings_count end |