Class: Rafflesia::RotamerSummaryData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RotamerSummaryData
- Defined in:
- lib/rafflesia/proteins/rotamer_summary_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ by_residue_type: :by_residue_type, g_minus: :g_minus, g_plus: :g_plus, residue_count: :residue_count, staggered_count: :staggered_count, staggered_fraction: :staggered_fraction, trans: :trans }.freeze
Instance Attribute Summary collapse
-
#by_residue_type ⇒ Object
Returns the value of attribute by_residue_type.
-
#g_minus ⇒ Object
Returns the value of attribute g_minus.
-
#g_plus ⇒ Object
Returns the value of attribute g_plus.
-
#residue_count ⇒ Object
Returns the value of attribute residue_count.
-
#staggered_count ⇒ Object
Returns the value of attribute staggered_count.
-
#staggered_fraction ⇒ Object
Returns the value of attribute staggered_fraction.
-
#trans ⇒ Object
Returns the value of attribute trans.
Instance Method Summary collapse
-
#initialize(json) ⇒ RotamerSummaryData
constructor
A new instance of RotamerSummaryData.
Constructor Details
#initialize(json) ⇒ RotamerSummaryData
Returns a new instance of RotamerSummaryData.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @by_residue_type = hash[:by_residue_type] || {} @g_minus = hash[:g_minus] @g_plus = hash[:g_plus] @residue_count = hash[:residue_count] @staggered_count = hash[:staggered_count] @staggered_fraction = hash[:staggered_fraction] @trans = hash[:trans] end |
Instance Attribute Details
#by_residue_type ⇒ Object
Returns the value of attribute by_residue_type.
18 19 20 |
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18 def by_residue_type @by_residue_type end |
#g_minus ⇒ Object
Returns the value of attribute g_minus.
18 19 20 |
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18 def g_minus @g_minus end |
#g_plus ⇒ Object
Returns the value of attribute g_plus.
18 19 20 |
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18 def g_plus @g_plus end |
#residue_count ⇒ Object
Returns the value of attribute residue_count.
18 19 20 |
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18 def residue_count @residue_count end |
#staggered_count ⇒ Object
Returns the value of attribute staggered_count.
18 19 20 |
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18 def staggered_count @staggered_count end |
#staggered_fraction ⇒ Object
Returns the value of attribute staggered_fraction.
18 19 20 |
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18 def staggered_fraction @staggered_fraction end |
#trans ⇒ Object
Returns the value of attribute trans.
18 19 20 |
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18 def trans @trans end |