Class: Rafflesia::StructurePredictionModification
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::StructurePredictionModification
- Defined in:
- lib/rafflesia/foundry/structure_prediction_modification.rb
Constant Summary collapse
- HASH_ATTRS =
{ ccd: :ccd, position: :position }.freeze
Instance Attribute Summary collapse
-
#ccd ⇒ Object
Returns the value of attribute ccd.
-
#position ⇒ Object
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(json) ⇒ StructurePredictionModification
constructor
A new instance of StructurePredictionModification.
Constructor Details
#initialize(json) ⇒ StructurePredictionModification
Returns a new instance of StructurePredictionModification.
17 18 19 20 21 22 |
# File 'lib/rafflesia/foundry/structure_prediction_modification.rb', line 17 def initialize(json) super() hash = self.class.normalize(json) @ccd = hash[:ccd] @position = hash[:position] end |
Instance Attribute Details
#ccd ⇒ Object
Returns the value of attribute ccd.
13 14 15 |
# File 'lib/rafflesia/foundry/structure_prediction_modification.rb', line 13 def ccd @ccd end |
#position ⇒ Object
Returns the value of attribute position.
13 14 15 |
# File 'lib/rafflesia/foundry/structure_prediction_modification.rb', line 13 def position @position end |