Class: Rafflesia::RegionSplitAlgorithm

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

Instance Method Summary collapse

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

#methodObject

Returns the value of attribute method.



16
17
18
# File 'lib/rafflesia/proteins/region_split_algorithm.rb', line 16

def method
  @method
end

#min_lengthObject

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

#nameObject

Returns the value of attribute name.



16
17
18
# File 'lib/rafflesia/proteins/region_split_algorithm.rb', line 16

def name
  @name
end

#pae_thresholdObject

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_thresholdObject

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