Class: Rafflesia::AnmModeDisplacement

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/anm_mode_displacement.rb

Constant Summary collapse

HASH_ATTRS =
{
  chain_id: :chain_id,
  dx: :dx,
  dy: :dy,
  dz: :dz,
  position: :position
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AnmModeDisplacement

Returns a new instance of AnmModeDisplacement.



23
24
25
26
27
28
29
30
31
# File 'lib/rafflesia/proteins/anm_mode_displacement.rb', line 23

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @chain_id = hash[:chain_id]
  @dx = hash[:dx]
  @dy = hash[:dy]
  @dz = hash[:dz]
  @position = hash[:position]
end

Instance Attribute Details

#chain_idObject

Returns the value of attribute chain_id.



16
17
18
# File 'lib/rafflesia/proteins/anm_mode_displacement.rb', line 16

def chain_id
  @chain_id
end

#dxObject

Returns the value of attribute dx.



16
17
18
# File 'lib/rafflesia/proteins/anm_mode_displacement.rb', line 16

def dx
  @dx
end

#dyObject

Returns the value of attribute dy.



16
17
18
# File 'lib/rafflesia/proteins/anm_mode_displacement.rb', line 16

def dy
  @dy
end

#dzObject

Returns the value of attribute dz.



16
17
18
# File 'lib/rafflesia/proteins/anm_mode_displacement.rb', line 16

def dz
  @dz
end

#positionObject

Returns the value of attribute position.



16
17
18
# File 'lib/rafflesia/proteins/anm_mode_displacement.rb', line 16

def position
  @position
end