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