Class: Rafflesia::FoundryProteinDesignRequest

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

Instance Method Summary collapse

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_idsObject

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_positionsObject

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_sequencesObject

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_formatObject

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

#seedObject

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_idObject

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

#temperatureObject

Returns the value of attribute temperature.



18
19
20
# File 'lib/rafflesia/foundry/foundry_protein_design_request.rb', line 18

def temperature
  @temperature
end