Class: Rafflesia::LigandNeighborsRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::LigandNeighborsRequest
- Defined in:
- lib/rafflesia/proteins/ligand_neighbors_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ database: :database, include_waters: :include_waters, ligands: :ligands, max_neighbors: :max_neighbors, output_format: :output_format, output_relation: :output_relation, partition_by: :partition_by, preview_limit: :preview_limit, radius: :radius, relation: :relation, release: :release, sort_by: :sort_by, structure_id: :structure_id }.freeze
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#include_waters ⇒ Object
Returns the value of attribute include_waters.
-
#ligands ⇒ Object
Returns the value of attribute ligands.
-
#max_neighbors ⇒ Object
Returns the value of attribute max_neighbors.
-
#output_format ⇒ Object
Returns the value of attribute output_format.
-
#output_relation ⇒ Object
Returns the value of attribute output_relation.
-
#partition_by ⇒ Object
Returns the value of attribute partition_by.
-
#preview_limit ⇒ Object
Returns the value of attribute preview_limit.
-
#radius ⇒ Object
Returns the value of attribute radius.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#release ⇒ Object
Returns the value of attribute release.
-
#sort_by ⇒ Object
Returns the value of attribute sort_by.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ LigandNeighborsRequest
constructor
A new instance of LigandNeighborsRequest.
Constructor Details
#initialize(json) ⇒ LigandNeighborsRequest
Returns a new instance of LigandNeighborsRequest.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @database = hash[:database] @include_waters = hash[:include_waters] @ligands = (hash[:ligands] || []) @max_neighbors = hash[:max_neighbors] @output_format = hash[:output_format] @output_relation = hash[:output_relation] @partition_by = (hash[:partition_by] || []) @preview_limit = hash[:preview_limit] @radius = hash[:radius] @relation = hash[:relation] @release = hash[:release] @sort_by = (hash[:sort_by] || []) @structure_id = hash[:structure_id] end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def database @database end |
#include_waters ⇒ Object
Returns the value of attribute include_waters.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def include_waters @include_waters end |
#ligands ⇒ Object
Returns the value of attribute ligands.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def ligands @ligands end |
#max_neighbors ⇒ Object
Returns the value of attribute max_neighbors.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def max_neighbors @max_neighbors end |
#output_format ⇒ Object
Returns the value of attribute output_format.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def output_format @output_format end |
#output_relation ⇒ Object
Returns the value of attribute output_relation.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def output_relation @output_relation end |
#partition_by ⇒ Object
Returns the value of attribute partition_by.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def partition_by @partition_by end |
#preview_limit ⇒ Object
Returns the value of attribute preview_limit.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def preview_limit @preview_limit end |
#radius ⇒ Object
Returns the value of attribute radius.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def radius @radius end |
#relation ⇒ Object
Returns the value of attribute relation.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def relation @relation end |
#release ⇒ Object
Returns the value of attribute release.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def release @release end |
#sort_by ⇒ Object
Returns the value of attribute sort_by.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def sort_by @sort_by end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
24 25 26 |
# File 'lib/rafflesia/proteins/ligand_neighbors_request.rb', line 24 def structure_id @structure_id end |