Class: Rafflesia::ResidueSummary
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ResidueSummary
- Defined in:
- lib/rafflesia/proteins/residue_summary.rb
Constant Summary collapse
- HASH_ATTRS =
{ assembly_id: :assembly_id, atom_count: :atom_count, auth_chain_id: :auth_chain_id, auth_position: :auth_position, chain_id: :chain_id, confidence_metric: :confidence_metric, confidence_value: :confidence_value, entity_id: :entity_id, insertion_code: :insertion_code, label_chain_id: :label_chain_id, label_position: :label_position, mean_b_factor: :mean_b_factor, model_id: :model_id, plddt: :plddt, position: :position, residue: :residue }.freeze
Instance Attribute Summary collapse
-
#assembly_id ⇒ Object
Returns the value of attribute assembly_id.
-
#atom_count ⇒ Object
Returns the value of attribute atom_count.
-
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
-
#auth_position ⇒ Object
Returns the value of attribute auth_position.
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#confidence_metric ⇒ Object
Returns the value of attribute confidence_metric.
-
#confidence_value ⇒ Object
Returns the value of attribute confidence_value.
-
#entity_id ⇒ Object
Returns the value of attribute entity_id.
-
#insertion_code ⇒ Object
Returns the value of attribute insertion_code.
-
#label_chain_id ⇒ Object
Returns the value of attribute label_chain_id.
-
#label_position ⇒ Object
Returns the value of attribute label_position.
-
#mean_b_factor ⇒ Object
Returns the value of attribute mean_b_factor.
-
#model_id ⇒ Object
Returns the value of attribute model_id.
-
#plddt ⇒ Object
Returns the value of attribute plddt.
-
#position ⇒ Object
Returns the value of attribute position.
-
#residue ⇒ Object
Returns the value of attribute residue.
Instance Method Summary collapse
-
#initialize(json) ⇒ ResidueSummary
constructor
A new instance of ResidueSummary.
Constructor Details
#initialize(json) ⇒ ResidueSummary
Returns a new instance of ResidueSummary.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 45 def initialize(json) super() hash = self.class.normalize(json) @assembly_id = hash[:assembly_id] @atom_count = hash[:atom_count] @auth_chain_id = hash[:auth_chain_id] @auth_position = hash[:auth_position] @chain_id = hash[:chain_id] @confidence_metric = hash[:confidence_metric] @confidence_value = hash[:confidence_value] @entity_id = hash[:entity_id] @insertion_code = hash[:insertion_code] @label_chain_id = hash[:label_chain_id] @label_position = hash[:label_position] @mean_b_factor = hash[:mean_b_factor] @model_id = hash[:model_id] @plddt = hash[:plddt] @position = hash[:position] @residue = hash[:residue] end |
Instance Attribute Details
#assembly_id ⇒ Object
Returns the value of attribute assembly_id.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def assembly_id @assembly_id end |
#atom_count ⇒ Object
Returns the value of attribute atom_count.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def atom_count @atom_count end |
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def auth_chain_id @auth_chain_id end |
#auth_position ⇒ Object
Returns the value of attribute auth_position.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def auth_position @auth_position end |
#chain_id ⇒ Object
Returns the value of attribute chain_id.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def chain_id @chain_id end |
#confidence_metric ⇒ Object
Returns the value of attribute confidence_metric.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def confidence_metric @confidence_metric end |
#confidence_value ⇒ Object
Returns the value of attribute confidence_value.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def confidence_value @confidence_value end |
#entity_id ⇒ Object
Returns the value of attribute entity_id.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def entity_id @entity_id end |
#insertion_code ⇒ Object
Returns the value of attribute insertion_code.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def insertion_code @insertion_code end |
#label_chain_id ⇒ Object
Returns the value of attribute label_chain_id.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def label_chain_id @label_chain_id end |
#label_position ⇒ Object
Returns the value of attribute label_position.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def label_position @label_position end |
#mean_b_factor ⇒ Object
Returns the value of attribute mean_b_factor.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def mean_b_factor @mean_b_factor end |
#model_id ⇒ Object
Returns the value of attribute model_id.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def model_id @model_id end |
#plddt ⇒ Object
Returns the value of attribute plddt.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def plddt @plddt end |
#position ⇒ Object
Returns the value of attribute position.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def position @position end |
#residue ⇒ Object
Returns the value of attribute residue.
27 28 29 |
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27 def residue @residue end |