Class: Rafflesia::PocketDetectRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::PocketDetectRequest
- Defined in:
- lib/rafflesia/proteins/pocket_detect_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, cache_mode: :cache_mode, database: :database, output_format: :output_format, output_relation: :output_relation, partition_by: :partition_by, preview_limit: :preview_limit, relation: :relation, release: :release, sort_by: :sort_by, structure_id: :structure_id }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#cache_mode ⇒ Object
Returns the value of attribute cache_mode.
-
#database ⇒ Object
Returns the value of attribute database.
-
#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.
-
#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) ⇒ PocketDetectRequest
constructor
A new instance of PocketDetectRequest.
Constructor Details
#initialize(json) ⇒ PocketDetectRequest
Returns a new instance of PocketDetectRequest.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] @cache_mode = hash[:cache_mode] @database = hash[:database] @output_format = hash[:output_format] @output_relation = hash[:output_relation] @partition_by = (hash[:partition_by] || []) @preview_limit = hash[:preview_limit] @relation = hash[:relation] @release = hash[:release] @sort_by = (hash[:sort_by] || []) @structure_id = hash[:structure_id] end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
22 23 24 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 22 def backend @backend end |
#cache_mode ⇒ Object
Returns the value of attribute cache_mode.
22 23 24 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 22 def cache_mode @cache_mode end |
#database ⇒ Object
Returns the value of attribute database.
22 23 24 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 22 def database @database end |
#output_format ⇒ Object
Returns the value of attribute output_format.
22 23 24 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 22 def output_format @output_format end |
#output_relation ⇒ Object
Returns the value of attribute output_relation.
22 23 24 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 22 def output_relation @output_relation end |
#partition_by ⇒ Object
Returns the value of attribute partition_by.
22 23 24 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 22 def partition_by @partition_by end |
#preview_limit ⇒ Object
Returns the value of attribute preview_limit.
22 23 24 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 22 def preview_limit @preview_limit end |
#relation ⇒ Object
Returns the value of attribute relation.
22 23 24 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 22 def relation @relation end |
#release ⇒ Object
Returns the value of attribute release.
22 23 24 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 22 def release @release end |
#sort_by ⇒ Object
Returns the value of attribute sort_by.
22 23 24 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 22 def sort_by @sort_by end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
22 23 24 |
# File 'lib/rafflesia/proteins/pocket_detect_request.rb', line 22 def structure_id @structure_id end |