Class: Rafflesia::BlastSearchShardData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BlastSearchShardData
- Defined in:
- lib/rafflesia/sequences/blast_search_shard_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ command: :command, db: :db, db_prefix: :db_prefix, elapsed_ms: :elapsed_ms, hit_count: :hit_count, index_format: :index_format, manifest_id: :manifest_id, materialization: :materialization, output_path: :output_path, raw_output_object: :raw_output_object, shard_id: :shard_id, warning_count: :warning_count, was_executed: :was_executed }.freeze
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#db ⇒ Object
Returns the value of attribute db.
-
#db_prefix ⇒ Object
Returns the value of attribute db_prefix.
-
#elapsed_ms ⇒ Object
Returns the value of attribute elapsed_ms.
-
#hit_count ⇒ Object
Returns the value of attribute hit_count.
-
#index_format ⇒ Object
Returns the value of attribute index_format.
-
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
-
#materialization ⇒ Object
Returns the value of attribute materialization.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
-
#raw_output_object ⇒ Object
Returns the value of attribute raw_output_object.
-
#shard_id ⇒ Object
Returns the value of attribute shard_id.
-
#warning_count ⇒ Object
Returns the value of attribute warning_count.
-
#was_executed ⇒ Object
Returns the value of attribute was_executed.
Instance Method Summary collapse
-
#initialize(json) ⇒ BlastSearchShardData
constructor
A new instance of BlastSearchShardData.
Constructor Details
#initialize(json) ⇒ BlastSearchShardData
Returns a new instance of BlastSearchShardData.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @command = (hash[:command] || []) @db = hash[:db] @db_prefix = hash[:db_prefix] @elapsed_ms = hash[:elapsed_ms] @hit_count = hash[:hit_count] @index_format = hash[:index_format] @manifest_id = hash[:manifest_id] @materialization = hash[:materialization] ? Rafflesia::BlastDbMaterializeData.new(hash[:materialization]) : nil @output_path = hash[:output_path] @raw_output_object = hash[:raw_output_object] ? Rafflesia::ObjectRef.new(hash[:raw_output_object]) : nil @shard_id = hash[:shard_id] @warning_count = hash[:warning_count] @was_executed = hash[:was_executed] end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def command @command end |
#db ⇒ Object
Returns the value of attribute db.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def db @db end |
#db_prefix ⇒ Object
Returns the value of attribute db_prefix.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def db_prefix @db_prefix end |
#elapsed_ms ⇒ Object
Returns the value of attribute elapsed_ms.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def elapsed_ms @elapsed_ms end |
#hit_count ⇒ Object
Returns the value of attribute hit_count.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def hit_count @hit_count end |
#index_format ⇒ Object
Returns the value of attribute index_format.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def index_format @index_format end |
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def manifest_id @manifest_id end |
#materialization ⇒ Object
Returns the value of attribute materialization.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def materialization @materialization end |
#output_path ⇒ Object
Returns the value of attribute output_path.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def output_path @output_path end |
#raw_output_object ⇒ Object
Returns the value of attribute raw_output_object.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def raw_output_object @raw_output_object end |
#shard_id ⇒ Object
Returns the value of attribute shard_id.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def shard_id @shard_id end |
#warning_count ⇒ Object
Returns the value of attribute warning_count.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def warning_count @warning_count end |
#was_executed ⇒ Object
Returns the value of attribute was_executed.
24 25 26 |
# File 'lib/rafflesia/sequences/blast_search_shard_data.rb', line 24 def was_executed @was_executed end |