Class: Rafflesia::RotamerResidueRecord
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RotamerResidueRecord
- Defined in:
- lib/rafflesia/proteins/rotamer_residue_record.rb
Constant Summary collapse
- HASH_ATTRS =
{ auth_chain_id: :auth_chain_id, auth_position: :auth_position, chain_id: :chain_id, chi1_deg: :chi_1_deg, chi1_is_staggered: :chi_1_is_staggered, chi1_rotamer: :chi_1_rotamer, chi2_deg: :chi_2_deg, insertion_code: :insertion_code, position: :position, residue: :residue }.freeze
Instance Attribute Summary collapse
-
#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.
-
#chi_1_deg ⇒ Object
Returns the value of attribute chi_1_deg.
-
#chi_1_is_staggered ⇒ Object
Returns the value of attribute chi_1_is_staggered.
-
#chi_1_rotamer ⇒ Object
Returns the value of attribute chi_1_rotamer.
-
#chi_2_deg ⇒ Object
Returns the value of attribute chi_2_deg.
-
#insertion_code ⇒ Object
Returns the value of attribute insertion_code.
-
#position ⇒ Object
Returns the value of attribute position.
-
#residue ⇒ Object
Returns the value of attribute residue.
Instance Method Summary collapse
-
#initialize(json) ⇒ RotamerResidueRecord
constructor
A new instance of RotamerResidueRecord.
Constructor Details
#initialize(json) ⇒ RotamerResidueRecord
Returns a new instance of RotamerResidueRecord.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 33 def initialize(json) super() hash = self.class.normalize(json) @auth_chain_id = hash[:auth_chain_id] @auth_position = hash[:auth_position] @chain_id = hash[:chain_id] @chi_1_deg = hash[:chi1_deg] @chi_1_is_staggered = hash[:chi1_is_staggered] @chi_1_rotamer = hash[:chi1_rotamer] @chi_2_deg = hash[:chi2_deg] @insertion_code = hash[:insertion_code] @position = hash[:position] @residue = hash[:residue] end |
Instance Attribute Details
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
21 22 23 |
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21 def auth_chain_id @auth_chain_id end |
#auth_position ⇒ Object
Returns the value of attribute auth_position.
21 22 23 |
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21 def auth_position @auth_position end |
#chain_id ⇒ Object
Returns the value of attribute chain_id.
21 22 23 |
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21 def chain_id @chain_id end |
#chi_1_deg ⇒ Object
Returns the value of attribute chi_1_deg.
21 22 23 |
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21 def chi_1_deg @chi_1_deg end |
#chi_1_is_staggered ⇒ Object
Returns the value of attribute chi_1_is_staggered.
21 22 23 |
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21 def chi_1_is_staggered @chi_1_is_staggered end |
#chi_1_rotamer ⇒ Object
Returns the value of attribute chi_1_rotamer.
21 22 23 |
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21 def chi_1_rotamer @chi_1_rotamer end |
#chi_2_deg ⇒ Object
Returns the value of attribute chi_2_deg.
21 22 23 |
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21 def chi_2_deg @chi_2_deg end |
#insertion_code ⇒ Object
Returns the value of attribute insertion_code.
21 22 23 |
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21 def insertion_code @insertion_code end |
#position ⇒ Object
Returns the value of attribute position.
21 22 23 |
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21 def position @position end |
#residue ⇒ Object
Returns the value of attribute residue.
21 22 23 |
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21 def residue @residue end |