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