Class: Rafflesia::HelixHydrophobicMomentRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_degreesObject

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

#chainObject

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_lengthObject

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_idObject

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