Class: Rafflesia::BiosearchQueryProfileAuditRunData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#auditObject

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

#comparisonObject

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_bottleneckObject

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_countObject

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

#gatesObject

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

#ingestObject

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_passedObject

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_objectObject

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_pathObject

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

#kindObject

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_objectObject

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_pathObject

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_dirObject

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

#pathObject

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_256Object

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_bytesObject

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

#validationObject

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

#warningsObject

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