Class: Rafflesia::CacheBenchmarkRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CacheBenchmarkRequest
- Defined in:
- lib/rafflesia/cache/cache_benchmark_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ db: :db, evalue: :evalue, evict_first: :evict_first, manifest_object_id: :manifest_object_id, manifest_path: :manifest_path, max_target_seqs: :max_target_seqs, min_bit_score: :min_bit_score, out_format: :out_format, pack_access_mode: :pack_access_mode, pressure_max_bytes: :pressure_max_bytes, program: :program, query: :query, ref: :ref, run_pressure: :run_pressure, segment_roles: :segment_roles, shards: :shards, target_dir: :target_dir, threads: :threads, verify: :verify, workload: :workload }.freeze
Instance Attribute Summary collapse
-
#db ⇒ Object
Returns the value of attribute db.
-
#evalue ⇒ Object
Returns the value of attribute evalue.
-
#evict_first ⇒ Object
Returns the value of attribute evict_first.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#max_target_seqs ⇒ Object
Returns the value of attribute max_target_seqs.
-
#min_bit_score ⇒ Object
Returns the value of attribute min_bit_score.
-
#out_format ⇒ Object
Returns the value of attribute out_format.
-
#pack_access_mode ⇒ Object
Returns the value of attribute pack_access_mode.
-
#pressure_max_bytes ⇒ Object
Returns the value of attribute pressure_max_bytes.
-
#program ⇒ Object
Returns the value of attribute program.
-
#query ⇒ Object
Returns the value of attribute query.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#run_pressure ⇒ Object
Returns the value of attribute run_pressure.
-
#segment_roles ⇒ Object
Returns the value of attribute segment_roles.
-
#shards ⇒ Object
Returns the value of attribute shards.
-
#target_dir ⇒ Object
Returns the value of attribute target_dir.
-
#threads ⇒ Object
Returns the value of attribute threads.
-
#verify ⇒ Object
Returns the value of attribute verify.
-
#workload ⇒ Object
Returns the value of attribute workload.
Instance Method Summary collapse
-
#initialize(json) ⇒ CacheBenchmarkRequest
constructor
A new instance of CacheBenchmarkRequest.
Constructor Details
#initialize(json) ⇒ CacheBenchmarkRequest
Returns a new instance of CacheBenchmarkRequest.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 53 def initialize(json) super() hash = self.class.normalize(json) @db = hash[:db] @evalue = hash[:evalue] @evict_first = hash[:evict_first] @manifest_object_id = hash[:manifest_object_id] @manifest_path = hash[:manifest_path] @max_target_seqs = hash[:max_target_seqs] @min_bit_score = hash[:min_bit_score] @out_format = hash[:out_format] @pack_access_mode = hash[:pack_access_mode] @pressure_max_bytes = hash[:pressure_max_bytes] @program = hash[:program] @query = hash[:query] @ref = hash[:ref] @run_pressure = hash[:run_pressure] @segment_roles = (hash[:segment_roles] || []) @shards = (hash[:shards] || []) @target_dir = hash[:target_dir] @threads = hash[:threads] @verify = hash[:verify] @workload = hash[:workload] end |
Instance Attribute Details
#db ⇒ Object
Returns the value of attribute db.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def db @db end |
#evalue ⇒ Object
Returns the value of attribute evalue.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def evalue @evalue end |
#evict_first ⇒ Object
Returns the value of attribute evict_first.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def evict_first @evict_first end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def manifest_object_id @manifest_object_id end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def manifest_path @manifest_path end |
#max_target_seqs ⇒ Object
Returns the value of attribute max_target_seqs.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def max_target_seqs @max_target_seqs end |
#min_bit_score ⇒ Object
Returns the value of attribute min_bit_score.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def min_bit_score @min_bit_score end |
#out_format ⇒ Object
Returns the value of attribute out_format.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def out_format @out_format end |
#pack_access_mode ⇒ Object
Returns the value of attribute pack_access_mode.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def pack_access_mode @pack_access_mode end |
#pressure_max_bytes ⇒ Object
Returns the value of attribute pressure_max_bytes.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def pressure_max_bytes @pressure_max_bytes end |
#program ⇒ Object
Returns the value of attribute program.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def program @program end |
#query ⇒ Object
Returns the value of attribute query.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def query @query end |
#ref ⇒ Object
Returns the value of attribute ref.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def ref @ref end |
#run_pressure ⇒ Object
Returns the value of attribute run_pressure.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def run_pressure @run_pressure end |
#segment_roles ⇒ Object
Returns the value of attribute segment_roles.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def segment_roles @segment_roles end |
#shards ⇒ Object
Returns the value of attribute shards.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def shards @shards end |
#target_dir ⇒ Object
Returns the value of attribute target_dir.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def target_dir @target_dir end |
#threads ⇒ Object
Returns the value of attribute threads.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def threads @threads end |
#verify ⇒ Object
Returns the value of attribute verify.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def verify @verify end |
#workload ⇒ Object
Returns the value of attribute workload.
31 32 33 |
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31 def workload @workload end |