Class: Rafflesia::BiosearchQueryProfileComparison
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BiosearchQueryProfileComparison
- 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
-
#current_source_sha_256 ⇒ Object
Returns the value of attribute current_source_sha_256.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#metrics ⇒ Object
Returns the value of attribute metrics.
-
#previous_audit_path ⇒ Object
Returns the value of attribute previous_audit_path.
-
#previous_source_sha_256 ⇒ Object
Returns the value of attribute previous_source_sha_256.
Instance Method Summary collapse
-
#initialize(json) ⇒ BiosearchQueryProfileComparison
constructor
A new instance of BiosearchQueryProfileComparison.
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_256 ⇒ Object
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 |
#kind ⇒ Object
Returns the value of attribute kind.
16 17 18 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_comparison.rb', line 16 def kind @kind end |
#metrics ⇒ Object
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_path ⇒ Object
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_256 ⇒ Object
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 |