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