Class: Rafflesia::HomologyQuery
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::HomologyQuery
- Defined in:
- lib/rafflesia/homology_query_context_measurements/homology_query.rb
Constant Summary collapse
- HASH_ATTRS =
{ kind: :kind, sequence: :sequence }.freeze
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
Instance Method Summary collapse
-
#initialize(json) ⇒ HomologyQuery
constructor
A new instance of HomologyQuery.
Constructor Details
#initialize(json) ⇒ HomologyQuery
Returns a new instance of HomologyQuery.
17 18 19 20 21 22 |
# File 'lib/rafflesia/homology_query_context_measurements/homology_query.rb', line 17 def initialize(json) super() hash = self.class.normalize(json) @kind = hash[:kind] @sequence = hash[:sequence] end |
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind.
13 14 15 |
# File 'lib/rafflesia/homology_query_context_measurements/homology_query.rb', line 13 def kind @kind end |
#sequence ⇒ Object
Returns the value of attribute sequence.
13 14 15 |
# File 'lib/rafflesia/homology_query_context_measurements/homology_query.rb', line 13 def sequence @sequence end |