Class: Rafflesia::LigandCompareRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::LigandCompareRequest
- Defined in:
- lib/rafflesia/proteins/ligand_compare_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ include_waters: :include_waters, query_ligands: :query_ligands, query_structure_id: :query_structure_id, radius: :radius, target_ligands: :target_ligands, target_structure_id: :target_structure_id }.freeze
Instance Attribute Summary collapse
-
#include_waters ⇒ Object
Returns the value of attribute include_waters.
-
#query_ligands ⇒ Object
Returns the value of attribute query_ligands.
-
#query_structure_id ⇒ Object
Returns the value of attribute query_structure_id.
-
#radius ⇒ Object
Returns the value of attribute radius.
-
#target_ligands ⇒ Object
Returns the value of attribute target_ligands.
-
#target_structure_id ⇒ Object
Returns the value of attribute target_structure_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ LigandCompareRequest
constructor
A new instance of LigandCompareRequest.
Constructor Details
#initialize(json) ⇒ LigandCompareRequest
Returns a new instance of LigandCompareRequest.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/proteins/ligand_compare_request.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @include_waters = hash[:include_waters] @query_ligands = (hash[:query_ligands] || []) @query_structure_id = hash[:query_structure_id] @radius = hash[:radius] @target_ligands = (hash[:target_ligands] || []) @target_structure_id = hash[:target_structure_id] end |
Instance Attribute Details
#include_waters ⇒ Object
Returns the value of attribute include_waters.
17 18 19 |
# File 'lib/rafflesia/proteins/ligand_compare_request.rb', line 17 def include_waters @include_waters end |
#query_ligands ⇒ Object
Returns the value of attribute query_ligands.
17 18 19 |
# File 'lib/rafflesia/proteins/ligand_compare_request.rb', line 17 def query_ligands @query_ligands end |
#query_structure_id ⇒ Object
Returns the value of attribute query_structure_id.
17 18 19 |
# File 'lib/rafflesia/proteins/ligand_compare_request.rb', line 17 def query_structure_id @query_structure_id end |
#radius ⇒ Object
Returns the value of attribute radius.
17 18 19 |
# File 'lib/rafflesia/proteins/ligand_compare_request.rb', line 17 def radius @radius end |
#target_ligands ⇒ Object
Returns the value of attribute target_ligands.
17 18 19 |
# File 'lib/rafflesia/proteins/ligand_compare_request.rb', line 17 def target_ligands @target_ligands end |
#target_structure_id ⇒ Object
Returns the value of attribute target_structure_id.
17 18 19 |
# File 'lib/rafflesia/proteins/ligand_compare_request.rb', line 17 def target_structure_id @target_structure_id end |