Class: Rafflesia::HomologyQuery

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

Instance Method Summary collapse

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

#kindObject

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

#sequenceObject

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