Class: Rafflesia::GnmFluctuationsRequest

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

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ GnmFluctuationsRequest

Returns a new instance of GnmFluctuationsRequest.



19
20
21
22
23
24
25
# File 'lib/rafflesia/proteins/gnm_fluctuations_request.rb', line 19

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

Instance Attribute Details

#chainObject

Returns the value of attribute chain.



14
15
16
# File 'lib/rafflesia/proteins/gnm_fluctuations_request.rb', line 14

def chain
  @chain
end

#cutoffObject

Returns the value of attribute cutoff.



14
15
16
# File 'lib/rafflesia/proteins/gnm_fluctuations_request.rb', line 14

def cutoff
  @cutoff
end

#structure_idObject

Returns the value of attribute structure_id.



14
15
16
# File 'lib/rafflesia/proteins/gnm_fluctuations_request.rb', line 14

def structure_id
  @structure_id
end