Class: Rafflesia::AnmResidueFluctuation

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/anm_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,
  x: :x,
  y: :y,
  z: :z
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AnmResidueFluctuation

Returns a new instance of AnmResidueFluctuation.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/proteins/anm_residue_fluctuation.rb', line 33

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]
  @x = hash[:x]
  @y = hash[:y]
  @z = hash[:z]
end

Instance Attribute Details

#auth_positionObject

Returns the value of attribute auth_position.



21
22
23
# File 'lib/rafflesia/proteins/anm_residue_fluctuation.rb', line 21

def auth_position
  @auth_position
end

#chain_idObject

Returns the value of attribute chain_id.



21
22
23
# File 'lib/rafflesia/proteins/anm_residue_fluctuation.rb', line 21

def chain_id
  @chain_id
end

#observed_b_factorObject

Returns the value of attribute observed_b_factor.



21
22
23
# File 'lib/rafflesia/proteins/anm_residue_fluctuation.rb', line 21

def observed_b_factor
  @observed_b_factor
end

#positionObject

Returns the value of attribute position.



21
22
23
# File 'lib/rafflesia/proteins/anm_residue_fluctuation.rb', line 21

def position
  @position
end

#predicted_b_factorObject

Returns the value of attribute predicted_b_factor.



21
22
23
# File 'lib/rafflesia/proteins/anm_residue_fluctuation.rb', line 21

def predicted_b_factor
  @predicted_b_factor
end

#predicted_msfObject

Returns the value of attribute predicted_msf.



21
22
23
# File 'lib/rafflesia/proteins/anm_residue_fluctuation.rb', line 21

def predicted_msf
  @predicted_msf
end

#residueObject

Returns the value of attribute residue.



21
22
23
# File 'lib/rafflesia/proteins/anm_residue_fluctuation.rb', line 21

def residue
  @residue
end

#xObject

Returns the value of attribute x.



21
22
23
# File 'lib/rafflesia/proteins/anm_residue_fluctuation.rb', line 21

def x
  @x
end

#yObject

Returns the value of attribute y.



21
22
23
# File 'lib/rafflesia/proteins/anm_residue_fluctuation.rb', line 21

def y
  @y
end

#zObject

Returns the value of attribute z.



21
22
23
# File 'lib/rafflesia/proteins/anm_residue_fluctuation.rb', line 21

def z
  @z
end