Class: Rafflesia::MapModelEvidenceEntry

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

Constant Summary collapse

HASH_ATTRS =
{
  association_id: :association_id,
  association_method: :association_method,
  association_source: :association_source,
  emdb_id: :emdb_id,
  fitted_pdb_id: :fitted_pdb_id,
  is_contour_measured: :is_contour_measured,
  is_fitted_pdb_present: :is_fitted_pdb_present,
  is_fitted_pdb_xref_consistent: :is_fitted_pdb_xref_consistent,
  is_map_metadata_available: :is_map_metadata_available,
  map_id: :map_id,
  map_title: :map_title,
  method: :method,
  model_id: :model_id,
  recommended_contour_level: :recommended_contour_level,
  resolution_angstrom: :resolution_angstrom,
  resolution_method: :resolution_method,
  source_url: :source_url,
  structure_id: :structure_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MapModelEvidenceEntry

Returns a new instance of MapModelEvidenceEntry.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 49

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @association_id = hash[:association_id]
  @association_method = hash[:association_method]
  @association_source = hash[:association_source]
  @emdb_id = hash[:emdb_id]
  @fitted_pdb_id = hash[:fitted_pdb_id]
  @is_contour_measured = hash[:is_contour_measured]
  @is_fitted_pdb_present = hash[:is_fitted_pdb_present]
  @is_fitted_pdb_xref_consistent = hash[:is_fitted_pdb_xref_consistent]
  @is_map_metadata_available = hash[:is_map_metadata_available]
  @map_id = hash[:map_id]
  @map_title = hash[:map_title]
  @method = hash[:method]
  @model_id = hash[:model_id]
  @recommended_contour_level = hash[:recommended_contour_level]
  @resolution_angstrom = hash[:resolution_angstrom]
  @resolution_method = hash[:resolution_method]
  @source_url = hash[:source_url]
  @structure_id = hash[:structure_id]
end

Instance Attribute Details

#association_idObject

Returns the value of attribute association_id.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def association_id
  @association_id
end

#association_methodObject

Returns the value of attribute association_method.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def association_method
  @association_method
end

#association_sourceObject

Returns the value of attribute association_source.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def association_source
  @association_source
end

#emdb_idObject

Returns the value of attribute emdb_id.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def emdb_id
  @emdb_id
end

#fitted_pdb_idObject

Returns the value of attribute fitted_pdb_id.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def fitted_pdb_id
  @fitted_pdb_id
end

#is_contour_measuredObject

Returns the value of attribute is_contour_measured.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def is_contour_measured
  @is_contour_measured
end

#is_fitted_pdb_presentObject

Returns the value of attribute is_fitted_pdb_present.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def is_fitted_pdb_present
  @is_fitted_pdb_present
end

#is_fitted_pdb_xref_consistentObject

Returns the value of attribute is_fitted_pdb_xref_consistent.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def is_fitted_pdb_xref_consistent
  @is_fitted_pdb_xref_consistent
end

#is_map_metadata_availableObject

Returns the value of attribute is_map_metadata_available.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def 
  @is_map_metadata_available
end

#map_idObject

Returns the value of attribute map_id.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def map_id
  @map_id
end

#map_titleObject

Returns the value of attribute map_title.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def map_title
  @map_title
end

#methodObject

Returns the value of attribute method.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def method
  @method
end

#model_idObject

Returns the value of attribute model_id.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def model_id
  @model_id
end

Returns the value of attribute recommended_contour_level.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def recommended_contour_level
  @recommended_contour_level
end

#resolution_angstromObject

Returns the value of attribute resolution_angstrom.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def resolution_angstrom
  @resolution_angstrom
end

#resolution_methodObject

Returns the value of attribute resolution_method.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def resolution_method
  @resolution_method
end

#source_urlObject

Returns the value of attribute source_url.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def source_url
  @source_url
end

#structure_idObject

Returns the value of attribute structure_id.



29
30
31
# File 'lib/rafflesia/maps/map_model_evidence_entry.rb', line 29

def structure_id
  @structure_id
end