Class: Rafflesia::FoundryEmbeddingInput
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoundryEmbeddingInput
- 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
-
#id ⇒ Object
Returns the value of attribute id.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
-
#structure_object_id ⇒ Object
Returns the value of attribute structure_object_id.
-
#three_di_sequence ⇒ Object
Returns the value of attribute three_di_sequence.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoundryEmbeddingInput
constructor
A new instance of FoundryEmbeddingInput.
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
#id ⇒ Object
Returns the value of attribute id.
15 16 17 |
# File 'lib/rafflesia/foundry/foundry_embedding_input.rb', line 15 def id @id end |
#sequence ⇒ Object
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_id ⇒ Object
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_sequence ⇒ Object
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 |