Class: Rafflesia::StructurePredictionModification

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

Constant Summary collapse

HASH_ATTRS =
{
  ccd: :ccd,
  position: :position
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ccdObject

Returns the value of attribute ccd.



13
14
15
# File 'lib/rafflesia/foundry/structure_prediction_modification.rb', line 13

def ccd
  @ccd
end

#positionObject

Returns the value of attribute position.



13
14
15
# File 'lib/rafflesia/foundry/structure_prediction_modification.rb', line 13

def position
  @position
end