Class: Rafflesia::FoundryProteinDesignRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoundryProteinDesignRequest
- Defined in:
- lib/rafflesia/foundry/foundry_protein_design_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ chain_ids: :chain_ids, fixed_positions: :fixed_positions, num_sequences: :num_sequences, output_format: :output_format, seed: :seed, structure_object_id: :structure_object_id, temperature: :temperature }.freeze
Instance Attribute Summary collapse
-
#chain_ids ⇒ Object
Returns the value of attribute chain_ids.
-
#fixed_positions ⇒ Object
Returns the value of attribute fixed_positions.
-
#num_sequences ⇒ Object
Returns the value of attribute num_sequences.
-
#output_format ⇒ Object
Returns the value of attribute output_format.
-
#seed ⇒ Object
Returns the value of attribute seed.
-
#structure_object_id ⇒ Object
Returns the value of attribute structure_object_id.
-
#temperature ⇒ Object
Returns the value of attribute temperature.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoundryProteinDesignRequest
constructor
A new instance of FoundryProteinDesignRequest.
Constructor Details
#initialize(json) ⇒ FoundryProteinDesignRequest
Returns a new instance of FoundryProteinDesignRequest.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/foundry/foundry_protein_design_request.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @chain_ids = (hash[:chain_ids] || []) @fixed_positions = (hash[:fixed_positions] || []) @num_sequences = hash[:num_sequences] @output_format = hash[:output_format] @seed = hash[:seed] @structure_object_id = hash[:structure_object_id] @temperature = hash[:temperature] end |
Instance Attribute Details
#chain_ids ⇒ Object
Returns the value of attribute chain_ids.
18 19 20 |
# File 'lib/rafflesia/foundry/foundry_protein_design_request.rb', line 18 def chain_ids @chain_ids end |
#fixed_positions ⇒ Object
Returns the value of attribute fixed_positions.
18 19 20 |
# File 'lib/rafflesia/foundry/foundry_protein_design_request.rb', line 18 def fixed_positions @fixed_positions end |
#num_sequences ⇒ Object
Returns the value of attribute num_sequences.
18 19 20 |
# File 'lib/rafflesia/foundry/foundry_protein_design_request.rb', line 18 def num_sequences @num_sequences end |
#output_format ⇒ Object
Returns the value of attribute output_format.
18 19 20 |
# File 'lib/rafflesia/foundry/foundry_protein_design_request.rb', line 18 def output_format @output_format end |
#seed ⇒ Object
Returns the value of attribute seed.
18 19 20 |
# File 'lib/rafflesia/foundry/foundry_protein_design_request.rb', line 18 def seed @seed end |
#structure_object_id ⇒ Object
Returns the value of attribute structure_object_id.
18 19 20 |
# File 'lib/rafflesia/foundry/foundry_protein_design_request.rb', line 18 def structure_object_id @structure_object_id end |
#temperature ⇒ Object
Returns the value of attribute temperature.
18 19 20 |
# File 'lib/rafflesia/foundry/foundry_protein_design_request.rb', line 18 def temperature @temperature end |