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