Class: Rafflesia::GnmResidueFluctuation

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_positionObject

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_idObject

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_factorObject

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

#positionObject

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_factorObject

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_msfObject

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

#residueObject

Returns the value of attribute residue.



18
19
20
# File 'lib/rafflesia/proteins/gnm_residue_fluctuation.rb', line 18

def residue
  @residue
end