Class: Rafflesia::BiosearchQueryProfileAuditRunData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BiosearchQueryProfileAuditRunData
- Defined in:
- lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ audit: :audit, comparison: :comparison, first_bottleneck: :first_bottleneck, gate_failure_count: :gate_failure_count, gates: :gates, ingest: :ingest, is_gate_passed: :is_gate_passed, json_object: :json_object, json_path: :json_path, kind: :kind, markdown_object: :markdown_object, markdown_path: :markdown_path, output_dir: :output_dir, path: :path, source_sha256: :source_sha_256, source_size_bytes: :source_size_bytes, validation: :validation, warnings: :warnings }.freeze
Instance Attribute Summary collapse
-
#audit ⇒ Object
Returns the value of attribute audit.
-
#comparison ⇒ Object
Returns the value of attribute comparison.
-
#first_bottleneck ⇒ Object
Returns the value of attribute first_bottleneck.
-
#gate_failure_count ⇒ Object
Returns the value of attribute gate_failure_count.
-
#gates ⇒ Object
Returns the value of attribute gates.
-
#ingest ⇒ Object
Returns the value of attribute ingest.
-
#is_gate_passed ⇒ Object
Returns the value of attribute is_gate_passed.
-
#json_object ⇒ Object
Returns the value of attribute json_object.
-
#json_path ⇒ Object
Returns the value of attribute json_path.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#markdown_object ⇒ Object
Returns the value of attribute markdown_object.
-
#markdown_path ⇒ Object
Returns the value of attribute markdown_path.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#path ⇒ Object
Returns the value of attribute path.
-
#source_sha_256 ⇒ Object
Returns the value of attribute source_sha_256.
-
#source_size_bytes ⇒ Object
Returns the value of attribute source_size_bytes.
-
#validation ⇒ Object
Returns the value of attribute validation.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(json) ⇒ BiosearchQueryProfileAuditRunData
constructor
A new instance of BiosearchQueryProfileAuditRunData.
Constructor Details
#initialize(json) ⇒ BiosearchQueryProfileAuditRunData
Returns a new instance of BiosearchQueryProfileAuditRunData.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 49 def initialize(json) super() hash = self.class.normalize(json) @audit = hash[:audit] ? Rafflesia::BiosearchQueryProfileAuditData.new(hash[:audit]) : nil @comparison = hash[:comparison] ? Rafflesia::BiosearchQueryProfileComparison.new(hash[:comparison]) : nil @first_bottleneck = hash[:first_bottleneck] @gate_failure_count = hash[:gate_failure_count] @gates = (hash[:gates] || []).map { |item| item ? Rafflesia::BiosearchQueryProfileAuditGate.new(item) : nil } @ingest = hash[:ingest] ? Rafflesia::BiosearchQueryProfileIngestData.new(hash[:ingest]) : nil @is_gate_passed = hash[:is_gate_passed] @json_object = hash[:json_object] ? Rafflesia::ObjectRef.new(hash[:json_object]) : nil @json_path = hash[:json_path] @kind = hash[:kind] @markdown_object = hash[:markdown_object] ? Rafflesia::ObjectRef.new(hash[:markdown_object]) : nil @markdown_path = hash[:markdown_path] @output_dir = hash[:output_dir] @path = hash[:path] @source_sha_256 = hash[:source_sha256] @source_size_bytes = hash[:source_size_bytes] @validation = hash[:validation] ? Rafflesia::BiosearchQueryProfileValidation.new(hash[:validation]) : nil @warnings = (hash[:warnings] || []) end |
Instance Attribute Details
#audit ⇒ Object
Returns the value of attribute audit.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def audit @audit end |
#comparison ⇒ Object
Returns the value of attribute comparison.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def comparison @comparison end |
#first_bottleneck ⇒ Object
Returns the value of attribute first_bottleneck.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def first_bottleneck @first_bottleneck end |
#gate_failure_count ⇒ Object
Returns the value of attribute gate_failure_count.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def gate_failure_count @gate_failure_count end |
#gates ⇒ Object
Returns the value of attribute gates.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def gates @gates end |
#ingest ⇒ Object
Returns the value of attribute ingest.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def ingest @ingest end |
#is_gate_passed ⇒ Object
Returns the value of attribute is_gate_passed.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def is_gate_passed @is_gate_passed end |
#json_object ⇒ Object
Returns the value of attribute json_object.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def json_object @json_object end |
#json_path ⇒ Object
Returns the value of attribute json_path.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def json_path @json_path end |
#kind ⇒ Object
Returns the value of attribute kind.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def kind @kind end |
#markdown_object ⇒ Object
Returns the value of attribute markdown_object.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def markdown_object @markdown_object end |
#markdown_path ⇒ Object
Returns the value of attribute markdown_path.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def markdown_path @markdown_path end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def output_dir @output_dir end |
#path ⇒ Object
Returns the value of attribute path.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def path @path end |
#source_sha_256 ⇒ Object
Returns the value of attribute source_sha_256.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def source_sha_256 @source_sha_256 end |
#source_size_bytes ⇒ Object
Returns the value of attribute source_size_bytes.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def source_size_bytes @source_size_bytes end |
#validation ⇒ Object
Returns the value of attribute validation.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def validation @validation end |
#warnings ⇒ Object
Returns the value of attribute warnings.
29 30 31 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_run_data.rb', line 29 def warnings @warnings end |