Class: Rafflesia::BiosearchQueryProfileComparison

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/biosearch/biosearch_query_profile_comparison.rb

Constant Summary collapse

HASH_ATTRS =
{
  current_source_sha256: :current_source_sha_256,
  kind: :kind,
  metrics: :metrics,
  previous_audit_path: :previous_audit_path,
  previous_source_sha256: :previous_source_sha_256
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ BiosearchQueryProfileComparison

Returns a new instance of BiosearchQueryProfileComparison.



23
24
25
26
27
28
29
30
31
# File 'lib/rafflesia/biosearch/biosearch_query_profile_comparison.rb', line 23

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @current_source_sha_256 = hash[:current_source_sha256]
  @kind = hash[:kind]
  @metrics = hash[:metrics] || {}
  @previous_audit_path = hash[:previous_audit_path]
  @previous_source_sha_256 = hash[:previous_source_sha256]
end

Instance Attribute Details

#current_source_sha_256Object

Returns the value of attribute current_source_sha_256.



16
17
18
# File 'lib/rafflesia/biosearch/biosearch_query_profile_comparison.rb', line 16

def current_source_sha_256
  @current_source_sha_256
end

#kindObject

Returns the value of attribute kind.



16
17
18
# File 'lib/rafflesia/biosearch/biosearch_query_profile_comparison.rb', line 16

def kind
  @kind
end

#metricsObject

Returns the value of attribute metrics.



16
17
18
# File 'lib/rafflesia/biosearch/biosearch_query_profile_comparison.rb', line 16

def metrics
  @metrics
end

#previous_audit_pathObject

Returns the value of attribute previous_audit_path.



16
17
18
# File 'lib/rafflesia/biosearch/biosearch_query_profile_comparison.rb', line 16

def previous_audit_path
  @previous_audit_path
end

#previous_source_sha_256Object

Returns the value of attribute previous_source_sha_256.



16
17
18
# File 'lib/rafflesia/biosearch/biosearch_query_profile_comparison.rb', line 16

def previous_source_sha_256
  @previous_source_sha_256
end