Class: Rafflesia::RegionSplitAlgorithm
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RegionSplitAlgorithm
- Defined in:
- lib/rafflesia/proteins/region_split_algorithm.rb
Constant Summary collapse
- HASH_ATTRS =
{ method: :method, min_length: :min_length, name: :name, pae_threshold: :pae_threshold, plddt_threshold: :plddt_threshold }.freeze
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
-
#min_length ⇒ Object
Returns the value of attribute min_length.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pae_threshold ⇒ Object
Returns the value of attribute pae_threshold.
-
#plddt_threshold ⇒ Object
Returns the value of attribute plddt_threshold.
Instance Method Summary collapse
-
#initialize(json) ⇒ RegionSplitAlgorithm
constructor
A new instance of RegionSplitAlgorithm.
Constructor Details
#initialize(json) ⇒ RegionSplitAlgorithm
Returns a new instance of RegionSplitAlgorithm.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/proteins/region_split_algorithm.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @method = hash[:method] @min_length = hash[:min_length] @name = hash[:name] @pae_threshold = hash[:pae_threshold] @plddt_threshold = hash[:plddt_threshold] end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
16 17 18 |
# File 'lib/rafflesia/proteins/region_split_algorithm.rb', line 16 def method @method end |
#min_length ⇒ Object
Returns the value of attribute min_length.
16 17 18 |
# File 'lib/rafflesia/proteins/region_split_algorithm.rb', line 16 def min_length @min_length end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/rafflesia/proteins/region_split_algorithm.rb', line 16 def name @name end |
#pae_threshold ⇒ Object
Returns the value of attribute pae_threshold.
16 17 18 |
# File 'lib/rafflesia/proteins/region_split_algorithm.rb', line 16 def pae_threshold @pae_threshold end |
#plddt_threshold ⇒ Object
Returns the value of attribute plddt_threshold.
16 17 18 |
# File 'lib/rafflesia/proteins/region_split_algorithm.rb', line 16 def plddt_threshold @plddt_threshold end |