Class: Rafflesia::HelixHydrophobicMomentRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::HelixHydrophobicMomentRequest
- Defined in:
- lib/rafflesia/proteins/helix_hydrophobic_moment_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ angle_degrees: :angle_degrees, chain: :chain, min_length: :min_length, structure_id: :structure_id }.freeze
Instance Attribute Summary collapse
-
#angle_degrees ⇒ Object
Returns the value of attribute angle_degrees.
-
#chain ⇒ Object
Returns the value of attribute chain.
-
#min_length ⇒ Object
Returns the value of attribute min_length.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ HelixHydrophobicMomentRequest
constructor
A new instance of HelixHydrophobicMomentRequest.
Constructor Details
#initialize(json) ⇒ HelixHydrophobicMomentRequest
Returns a new instance of HelixHydrophobicMomentRequest.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/proteins/helix_hydrophobic_moment_request.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @angle_degrees = hash[:angle_degrees] @chain = hash[:chain] @min_length = hash[:min_length] @structure_id = hash[:structure_id] end |
Instance Attribute Details
#angle_degrees ⇒ Object
Returns the value of attribute angle_degrees.
15 16 17 |
# File 'lib/rafflesia/proteins/helix_hydrophobic_moment_request.rb', line 15 def angle_degrees @angle_degrees end |
#chain ⇒ Object
Returns the value of attribute chain.
15 16 17 |
# File 'lib/rafflesia/proteins/helix_hydrophobic_moment_request.rb', line 15 def chain @chain end |
#min_length ⇒ Object
Returns the value of attribute min_length.
15 16 17 |
# File 'lib/rafflesia/proteins/helix_hydrophobic_moment_request.rb', line 15 def min_length @min_length end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
15 16 17 |
# File 'lib/rafflesia/proteins/helix_hydrophobic_moment_request.rb', line 15 def structure_id @structure_id end |