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