Class: Rafflesia::AnmModeDisplacement
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::AnmModeDisplacement
- 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
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#dx ⇒ Object
Returns the value of attribute dx.
-
#dy ⇒ Object
Returns the value of attribute dy.
-
#dz ⇒ Object
Returns the value of attribute dz.
-
#position ⇒ Object
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(json) ⇒ AnmModeDisplacement
constructor
A new instance of AnmModeDisplacement.
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_id ⇒ Object
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 |
#dx ⇒ Object
Returns the value of attribute dx.
16 17 18 |
# File 'lib/rafflesia/proteins/anm_mode_displacement.rb', line 16 def dx @dx end |
#dy ⇒ Object
Returns the value of attribute dy.
16 17 18 |
# File 'lib/rafflesia/proteins/anm_mode_displacement.rb', line 16 def dy @dy end |
#dz ⇒ Object
Returns the value of attribute dz.
16 17 18 |
# File 'lib/rafflesia/proteins/anm_mode_displacement.rb', line 16 def dz @dz end |
#position ⇒ Object
Returns the value of attribute position.
16 17 18 |
# File 'lib/rafflesia/proteins/anm_mode_displacement.rb', line 16 def position @position end |