Class: Rafflesia::AromaticPairRecord
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::AromaticPairRecord
- Defined in:
- lib/rafflesia/proteins/aromatic_pair_record.rb
Constant Summary collapse
- HASH_ATTRS =
{ a_auth_chain_id: :a_auth_chain_id, a_auth_position: :a_auth_position, a_chain_id: :a_chain_id, a_position: :a_position, a_residue: :a_residue, a_ring_name: :a_ring_name, b_auth_chain_id: :b_auth_chain_id, b_auth_position: :b_auth_position, b_chain_id: :b_chain_id, b_position: :b_position, b_residue: :b_residue, b_ring_name: :b_ring_name, centroid_distance_angstrom: :centroid_distance_angstrom, geometry: :geometry, interplanar_angle_deg: :interplanar_angle_deg, lateral_offset_angstrom: :lateral_offset_angstrom, same_chain: :same_chain }.freeze
Instance Attribute Summary collapse
-
#a_auth_chain_id ⇒ Object
Returns the value of attribute a_auth_chain_id.
-
#a_auth_position ⇒ Object
Returns the value of attribute a_auth_position.
-
#a_chain_id ⇒ Object
Returns the value of attribute a_chain_id.
-
#a_position ⇒ Object
Returns the value of attribute a_position.
-
#a_residue ⇒ Object
Returns the value of attribute a_residue.
-
#a_ring_name ⇒ Object
Returns the value of attribute a_ring_name.
-
#b_auth_chain_id ⇒ Object
Returns the value of attribute b_auth_chain_id.
-
#b_auth_position ⇒ Object
Returns the value of attribute b_auth_position.
-
#b_chain_id ⇒ Object
Returns the value of attribute b_chain_id.
-
#b_position ⇒ Object
Returns the value of attribute b_position.
-
#b_residue ⇒ Object
Returns the value of attribute b_residue.
-
#b_ring_name ⇒ Object
Returns the value of attribute b_ring_name.
-
#centroid_distance_angstrom ⇒ Object
Returns the value of attribute centroid_distance_angstrom.
-
#geometry ⇒ Object
Returns the value of attribute geometry.
-
#interplanar_angle_deg ⇒ Object
Returns the value of attribute interplanar_angle_deg.
-
#lateral_offset_angstrom ⇒ Object
Returns the value of attribute lateral_offset_angstrom.
-
#same_chain ⇒ Object
Returns the value of attribute same_chain.
Instance Method Summary collapse
-
#initialize(json) ⇒ AromaticPairRecord
constructor
A new instance of AromaticPairRecord.
Constructor Details
#initialize(json) ⇒ AromaticPairRecord
Returns a new instance of AromaticPairRecord.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 47 def initialize(json) super() hash = self.class.normalize(json) @a_auth_chain_id = hash[:a_auth_chain_id] @a_auth_position = hash[:a_auth_position] @a_chain_id = hash[:a_chain_id] @a_position = hash[:a_position] @a_residue = hash[:a_residue] @a_ring_name = hash[:a_ring_name] @b_auth_chain_id = hash[:b_auth_chain_id] @b_auth_position = hash[:b_auth_position] @b_chain_id = hash[:b_chain_id] @b_position = hash[:b_position] @b_residue = hash[:b_residue] @b_ring_name = hash[:b_ring_name] @centroid_distance_angstrom = hash[:centroid_distance_angstrom] @geometry = hash[:geometry] @interplanar_angle_deg = hash[:interplanar_angle_deg] @lateral_offset_angstrom = hash[:lateral_offset_angstrom] @same_chain = hash[:same_chain] end |
Instance Attribute Details
#a_auth_chain_id ⇒ Object
Returns the value of attribute a_auth_chain_id.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def a_auth_chain_id @a_auth_chain_id end |
#a_auth_position ⇒ Object
Returns the value of attribute a_auth_position.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def a_auth_position @a_auth_position end |
#a_chain_id ⇒ Object
Returns the value of attribute a_chain_id.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def a_chain_id @a_chain_id end |
#a_position ⇒ Object
Returns the value of attribute a_position.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def a_position @a_position end |
#a_residue ⇒ Object
Returns the value of attribute a_residue.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def a_residue @a_residue end |
#a_ring_name ⇒ Object
Returns the value of attribute a_ring_name.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def a_ring_name @a_ring_name end |
#b_auth_chain_id ⇒ Object
Returns the value of attribute b_auth_chain_id.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def b_auth_chain_id @b_auth_chain_id end |
#b_auth_position ⇒ Object
Returns the value of attribute b_auth_position.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def b_auth_position @b_auth_position end |
#b_chain_id ⇒ Object
Returns the value of attribute b_chain_id.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def b_chain_id @b_chain_id end |
#b_position ⇒ Object
Returns the value of attribute b_position.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def b_position @b_position end |
#b_residue ⇒ Object
Returns the value of attribute b_residue.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def b_residue @b_residue end |
#b_ring_name ⇒ Object
Returns the value of attribute b_ring_name.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def b_ring_name @b_ring_name end |
#centroid_distance_angstrom ⇒ Object
Returns the value of attribute centroid_distance_angstrom.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def centroid_distance_angstrom @centroid_distance_angstrom end |
#geometry ⇒ Object
Returns the value of attribute geometry.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def geometry @geometry end |
#interplanar_angle_deg ⇒ Object
Returns the value of attribute interplanar_angle_deg.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def interplanar_angle_deg @interplanar_angle_deg end |
#lateral_offset_angstrom ⇒ Object
Returns the value of attribute lateral_offset_angstrom.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def lateral_offset_angstrom @lateral_offset_angstrom end |
#same_chain ⇒ Object
Returns the value of attribute same_chain.
28 29 30 |
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28 def same_chain @same_chain end |