Class: Rafflesia::SequenceAlignRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceAlignRequest
- Defined in:
- lib/rafflesia/sequences/sequence_align_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ gap: :gap, match: :match, mismatch: :mismatch, query: :query, query_positions: :query_positions, target: :target }.freeze
Instance Attribute Summary collapse
-
#gap ⇒ Object
Returns the value of attribute gap.
-
#match ⇒ Object
Returns the value of attribute match.
-
#mismatch ⇒ Object
Returns the value of attribute mismatch.
-
#query ⇒ Object
Returns the value of attribute query.
-
#query_positions ⇒ Object
Returns the value of attribute query_positions.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceAlignRequest
constructor
A new instance of SequenceAlignRequest.
Constructor Details
#initialize(json) ⇒ SequenceAlignRequest
Returns a new instance of SequenceAlignRequest.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/sequences/sequence_align_request.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @gap = hash[:gap] @match = hash[:match] @mismatch = hash[:mismatch] @query = hash[:query] @query_positions = (hash[:query_positions] || []) @target = hash[:target] end |
Instance Attribute Details
#gap ⇒ Object
Returns the value of attribute gap.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_align_request.rb', line 17 def gap @gap end |
#match ⇒ Object
Returns the value of attribute match.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_align_request.rb', line 17 def match @match end |
#mismatch ⇒ Object
Returns the value of attribute mismatch.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_align_request.rb', line 17 def mismatch @mismatch end |
#query ⇒ Object
Returns the value of attribute query.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_align_request.rb', line 17 def query @query end |
#query_positions ⇒ Object
Returns the value of attribute query_positions.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_align_request.rb', line 17 def query_positions @query_positions end |
#target ⇒ Object
Returns the value of attribute target.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_align_request.rb', line 17 def target @target end |