Class: Rafflesia::MapModelFitCandidateApplyData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/maps/map_model_fit_candidate_apply_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  applied_structure: :applied_structure,
  assembly_atom_count: :assembly_atom_count,
  candidate_id: :candidate_id,
  component_atom_count: :component_atom_count,
  fit_measurements: :fit_measurements,
  map_id: :map_id,
  parameters: :parameters,
  source_structure_id: :source_structure_id,
  uses_hidden_references: :uses_hidden_references
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MapModelFitCandidateApplyData

Returns a new instance of MapModelFitCandidateApplyData.



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_data.rb', line 31

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @applied_structure = hash[:applied_structure] ? Rafflesia::StructureData.new(hash[:applied_structure]) : nil
  @assembly_atom_count = hash[:assembly_atom_count]
  @candidate_id = hash[:candidate_id]
  @component_atom_count = hash[:component_atom_count]
  @fit_measurements = hash[:fit_measurements] ? Rafflesia::MapModelFitScoreData.new(hash[:fit_measurements]) : nil
  @map_id = hash[:map_id]
  @parameters = hash[:parameters] ? Rafflesia::MapModelFitCyclicParameters.new(hash[:parameters]) : nil
  @source_structure_id = hash[:source_structure_id]
  @uses_hidden_references = hash[:uses_hidden_references]
end

Instance Attribute Details

#applied_structureObject

Returns the value of attribute applied_structure.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_data.rb', line 20

def applied_structure
  @applied_structure
end

#assembly_atom_countObject

Returns the value of attribute assembly_atom_count.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_data.rb', line 20

def assembly_atom_count
  @assembly_atom_count
end

#candidate_idObject

Returns the value of attribute candidate_id.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_data.rb', line 20

def candidate_id
  @candidate_id
end

#component_atom_countObject

Returns the value of attribute component_atom_count.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_data.rb', line 20

def component_atom_count
  @component_atom_count
end

#fit_measurementsObject

Returns the value of attribute fit_measurements.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_data.rb', line 20

def fit_measurements
  @fit_measurements
end

#map_idObject

Returns the value of attribute map_id.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_data.rb', line 20

def map_id
  @map_id
end

#parametersObject

Returns the value of attribute parameters.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_data.rb', line 20

def parameters
  @parameters
end

#source_structure_idObject

Returns the value of attribute source_structure_id.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_data.rb', line 20

def source_structure_id
  @source_structure_id
end

#uses_hidden_referencesObject

Returns the value of attribute uses_hidden_references.



20
21
22
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_data.rb', line 20

def uses_hidden_references
  @uses_hidden_references
end