Class: Rafflesia::AnmFluctuationsRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  chain: :chain,
  cutoff: :cutoff,
  modes: :modes,
  structure_id: :structure_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AnmFluctuationsRequest

Returns a new instance of AnmFluctuationsRequest.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/proteins/anm_fluctuations_request.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @chain = hash[:chain]
  @cutoff = hash[:cutoff]
  @modes = hash[:modes]
  @structure_id = hash[:structure_id]
end

Instance Attribute Details

#chainObject

Returns the value of attribute chain.



15
16
17
# File 'lib/rafflesia/proteins/anm_fluctuations_request.rb', line 15

def chain
  @chain
end

#cutoffObject

Returns the value of attribute cutoff.



15
16
17
# File 'lib/rafflesia/proteins/anm_fluctuations_request.rb', line 15

def cutoff
  @cutoff
end

#modesObject

Returns the value of attribute modes.



15
16
17
# File 'lib/rafflesia/proteins/anm_fluctuations_request.rb', line 15

def modes
  @modes
end

#structure_idObject

Returns the value of attribute structure_id.



15
16
17
# File 'lib/rafflesia/proteins/anm_fluctuations_request.rb', line 15

def structure_id
  @structure_id
end