Class: Rafflesia::DisulfideBondRecord
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DisulfideBondRecord
- Defined in:
- lib/rafflesia/proteins/disulfide_bond_record.rb
Constant Summary collapse
- HASH_ATTRS =
{ ca_distance_angstrom: :ca_distance_angstrom, chi1_a_degrees: :chi_1_a_degrees, chi1_b_degrees: :chi_1_b_degrees, chi2_a_degrees: :chi_2_a_degrees, chi2_b_degrees: :chi_2_b_degrees, chi3_degrees: :chi_3_degrees, configuration: :configuration, cys_a: :cys_a, cys_b: :cys_b, same_chain: :same_chain, sg_distance_angstrom: :sg_distance_angstrom }.freeze
Instance Attribute Summary collapse
-
#ca_distance_angstrom ⇒ Object
Returns the value of attribute ca_distance_angstrom.
-
#chi_1_a_degrees ⇒ Object
Returns the value of attribute chi_1_a_degrees.
-
#chi_1_b_degrees ⇒ Object
Returns the value of attribute chi_1_b_degrees.
-
#chi_2_a_degrees ⇒ Object
Returns the value of attribute chi_2_a_degrees.
-
#chi_2_b_degrees ⇒ Object
Returns the value of attribute chi_2_b_degrees.
-
#chi_3_degrees ⇒ Object
Returns the value of attribute chi_3_degrees.
-
#configuration ⇒ Object
Returns the value of attribute configuration.
-
#cys_a ⇒ Object
Returns the value of attribute cys_a.
-
#cys_b ⇒ Object
Returns the value of attribute cys_b.
-
#same_chain ⇒ Object
Returns the value of attribute same_chain.
-
#sg_distance_angstrom ⇒ Object
Returns the value of attribute sg_distance_angstrom.
Instance Method Summary collapse
-
#initialize(json) ⇒ DisulfideBondRecord
constructor
A new instance of DisulfideBondRecord.
Constructor Details
#initialize(json) ⇒ DisulfideBondRecord
Returns a new instance of DisulfideBondRecord.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @ca_distance_angstrom = hash[:ca_distance_angstrom] @chi_1_a_degrees = hash[:chi1_a_degrees] @chi_1_b_degrees = hash[:chi1_b_degrees] @chi_2_a_degrees = hash[:chi2_a_degrees] @chi_2_b_degrees = hash[:chi2_b_degrees] @chi_3_degrees = hash[:chi3_degrees] @configuration = hash[:configuration] @cys_a = hash[:cys_a] ? Rafflesia::ResiduePointer.new(hash[:cys_a]) : nil @cys_b = hash[:cys_b] ? Rafflesia::ResiduePointer.new(hash[:cys_b]) : nil @same_chain = hash[:same_chain] @sg_distance_angstrom = hash[:sg_distance_angstrom] end |
Instance Attribute Details
#ca_distance_angstrom ⇒ Object
Returns the value of attribute ca_distance_angstrom.
22 23 24 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 22 def ca_distance_angstrom @ca_distance_angstrom end |
#chi_1_a_degrees ⇒ Object
Returns the value of attribute chi_1_a_degrees.
22 23 24 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 22 def chi_1_a_degrees @chi_1_a_degrees end |
#chi_1_b_degrees ⇒ Object
Returns the value of attribute chi_1_b_degrees.
22 23 24 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 22 def chi_1_b_degrees @chi_1_b_degrees end |
#chi_2_a_degrees ⇒ Object
Returns the value of attribute chi_2_a_degrees.
22 23 24 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 22 def chi_2_a_degrees @chi_2_a_degrees end |
#chi_2_b_degrees ⇒ Object
Returns the value of attribute chi_2_b_degrees.
22 23 24 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 22 def chi_2_b_degrees @chi_2_b_degrees end |
#chi_3_degrees ⇒ Object
Returns the value of attribute chi_3_degrees.
22 23 24 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 22 def chi_3_degrees @chi_3_degrees end |
#configuration ⇒ Object
Returns the value of attribute configuration.
22 23 24 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 22 def configuration @configuration end |
#cys_a ⇒ Object
Returns the value of attribute cys_a.
22 23 24 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 22 def cys_a @cys_a end |
#cys_b ⇒ Object
Returns the value of attribute cys_b.
22 23 24 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 22 def cys_b @cys_b end |
#same_chain ⇒ Object
Returns the value of attribute same_chain.
22 23 24 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 22 def same_chain @same_chain end |
#sg_distance_angstrom ⇒ Object
Returns the value of attribute sg_distance_angstrom.
22 23 24 |
# File 'lib/rafflesia/proteins/disulfide_bond_record.rb', line 22 def sg_distance_angstrom @sg_distance_angstrom end |