Class: Rafflesia::FoundryEmbeddingInput

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/foundry/foundry_embedding_input.rb

Constant Summary collapse

HASH_ATTRS =
{
  id: :id,
  sequence: :sequence,
  structure_object_id: :structure_object_id,
  three_di_sequence: :three_di_sequence
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoundryEmbeddingInput

Returns a new instance of FoundryEmbeddingInput.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/foundry/foundry_embedding_input.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @id = hash[:id]
  @sequence = hash[:sequence]
  @structure_object_id = hash[:structure_object_id]
  @three_di_sequence = hash[:three_di_sequence]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



15
16
17
# File 'lib/rafflesia/foundry/foundry_embedding_input.rb', line 15

def id
  @id
end

#sequenceObject

Returns the value of attribute sequence.



15
16
17
# File 'lib/rafflesia/foundry/foundry_embedding_input.rb', line 15

def sequence
  @sequence
end

#structure_object_idObject

Returns the value of attribute structure_object_id.



15
16
17
# File 'lib/rafflesia/foundry/foundry_embedding_input.rb', line 15

def structure_object_id
  @structure_object_id
end

#three_di_sequenceObject

Returns the value of attribute three_di_sequence.



15
16
17
# File 'lib/rafflesia/foundry/foundry_embedding_input.rb', line 15

def three_di_sequence
  @three_di_sequence
end