Class: Rafflesia::SequenceAlignDataParametersStruct
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceAlignDataParametersStruct
- Defined in:
- lib/rafflesia/sequences/sequence_align_data_parameters_struct.rb
Constant Summary collapse
- HASH_ATTRS =
{ gap: :gap, match: :match, mismatch: :mismatch }.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.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceAlignDataParametersStruct
constructor
A new instance of SequenceAlignDataParametersStruct.
Constructor Details
#initialize(json) ⇒ SequenceAlignDataParametersStruct
Returns a new instance of SequenceAlignDataParametersStruct.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/sequences/sequence_align_data_parameters_struct.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @gap = hash[:gap] @match = hash[:match] @mismatch = hash[:mismatch] end |
Instance Attribute Details
#gap ⇒ Object
Returns the value of attribute gap.
14 15 16 |
# File 'lib/rafflesia/sequences/sequence_align_data_parameters_struct.rb', line 14 def gap @gap end |
#match ⇒ Object
Returns the value of attribute match.
14 15 16 |
# File 'lib/rafflesia/sequences/sequence_align_data_parameters_struct.rb', line 14 def match @match end |
#mismatch ⇒ Object
Returns the value of attribute mismatch.
14 15 16 |
# File 'lib/rafflesia/sequences/sequence_align_data_parameters_struct.rb', line 14 def mismatch @mismatch end |