Class: Rafflesia::BetaTurnRecord
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BetaTurnRecord
- Defined in:
- lib/rafflesia/proteins/beta_turn_record.rb
Constant Summary collapse
- HASH_ATTRS =
{ auth_chain_id: :auth_chain_id, ca_distance_angstrom: :ca_distance_angstrom, chain_id: :chain_id, cis_proline: :cis_proline, end_position: :end_position, phi_i1_deg: :phi_i_1_deg, phi_i2_deg: :phi_i_2_deg, positions: :positions, psi_i1_deg: :psi_i_1_deg, psi_i2_deg: :psi_i_2_deg, residues: :residues, start_position: :start_position, type: :type }.freeze
Instance Attribute Summary collapse
-
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
-
#ca_distance_angstrom ⇒ Object
Returns the value of attribute ca_distance_angstrom.
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#cis_proline ⇒ Object
Returns the value of attribute cis_proline.
-
#end_position ⇒ Object
Returns the value of attribute end_position.
-
#phi_i_1_deg ⇒ Object
Returns the value of attribute phi_i_1_deg.
-
#phi_i_2_deg ⇒ Object
Returns the value of attribute phi_i_2_deg.
-
#positions ⇒ Object
Returns the value of attribute positions.
-
#psi_i_1_deg ⇒ Object
Returns the value of attribute psi_i_1_deg.
-
#psi_i_2_deg ⇒ Object
Returns the value of attribute psi_i_2_deg.
-
#residues ⇒ Object
Returns the value of attribute residues.
-
#start_position ⇒ Object
Returns the value of attribute start_position.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(json) ⇒ BetaTurnRecord
constructor
A new instance of BetaTurnRecord.
Constructor Details
#initialize(json) ⇒ BetaTurnRecord
Returns a new instance of BetaTurnRecord.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @auth_chain_id = hash[:auth_chain_id] @ca_distance_angstrom = hash[:ca_distance_angstrom] @chain_id = hash[:chain_id] @cis_proline = hash[:cis_proline] @end_position = hash[:end_position] @phi_i_1_deg = hash[:phi_i1_deg] @phi_i_2_deg = hash[:phi_i2_deg] @positions = (hash[:positions] || []) @psi_i_1_deg = hash[:psi_i1_deg] @psi_i_2_deg = hash[:psi_i2_deg] @residues = (hash[:residues] || []) @start_position = hash[:start_position] @type = hash[:type] end |
Instance Attribute Details
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def auth_chain_id @auth_chain_id end |
#ca_distance_angstrom ⇒ Object
Returns the value of attribute ca_distance_angstrom.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def ca_distance_angstrom @ca_distance_angstrom end |
#chain_id ⇒ Object
Returns the value of attribute chain_id.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def chain_id @chain_id end |
#cis_proline ⇒ Object
Returns the value of attribute cis_proline.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def cis_proline @cis_proline end |
#end_position ⇒ Object
Returns the value of attribute end_position.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def end_position @end_position end |
#phi_i_1_deg ⇒ Object
Returns the value of attribute phi_i_1_deg.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def phi_i_1_deg @phi_i_1_deg end |
#phi_i_2_deg ⇒ Object
Returns the value of attribute phi_i_2_deg.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def phi_i_2_deg @phi_i_2_deg end |
#positions ⇒ Object
Returns the value of attribute positions.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def positions @positions end |
#psi_i_1_deg ⇒ Object
Returns the value of attribute psi_i_1_deg.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def psi_i_1_deg @psi_i_1_deg end |
#psi_i_2_deg ⇒ Object
Returns the value of attribute psi_i_2_deg.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def psi_i_2_deg @psi_i_2_deg end |
#residues ⇒ Object
Returns the value of attribute residues.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def residues @residues end |
#start_position ⇒ Object
Returns the value of attribute start_position.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def start_position @start_position end |
#type ⇒ Object
Returns the value of attribute type.
24 25 26 |
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24 def type @type end |