Class: Rafflesia::SequenceSeedIndexTokenFilter
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceSeedIndexTokenFilter
- Defined in:
- lib/rafflesia/sequences/sequence_seed_index_token_filter.rb
Constant Summary collapse
- HASH_ATTRS =
{ algorithm: :algorithm, bit_count: :bit_count, bits_base64: :bits_base_64, content_sha256: :content_sha_256, distinct_token_count: :distinct_token_count, hash_count: :hash_count, kmer_size: :kmer_size, set_bit_count: :set_bit_count }.freeze
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#bit_count ⇒ Object
Returns the value of attribute bit_count.
-
#bits_base_64 ⇒ Object
Returns the value of attribute bits_base_64.
-
#content_sha_256 ⇒ Object
Returns the value of attribute content_sha_256.
-
#distinct_token_count ⇒ Object
Returns the value of attribute distinct_token_count.
-
#hash_count ⇒ Object
Returns the value of attribute hash_count.
-
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
-
#set_bit_count ⇒ Object
Returns the value of attribute set_bit_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceSeedIndexTokenFilter
constructor
A new instance of SequenceSeedIndexTokenFilter.
Constructor Details
#initialize(json) ⇒ SequenceSeedIndexTokenFilter
Returns a new instance of SequenceSeedIndexTokenFilter.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/sequences/sequence_seed_index_token_filter.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @algorithm = hash[:algorithm] @bit_count = hash[:bit_count] @bits_base_64 = hash[:bits_base64] @content_sha_256 = hash[:content_sha256] @distinct_token_count = hash[:distinct_token_count] @hash_count = hash[:hash_count] @kmer_size = hash[:kmer_size] @set_bit_count = hash[:set_bit_count] end |
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_token_filter.rb', line 19 def algorithm @algorithm end |
#bit_count ⇒ Object
Returns the value of attribute bit_count.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_token_filter.rb', line 19 def bit_count @bit_count end |
#bits_base_64 ⇒ Object
Returns the value of attribute bits_base_64.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_token_filter.rb', line 19 def bits_base_64 @bits_base_64 end |
#content_sha_256 ⇒ Object
Returns the value of attribute content_sha_256.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_token_filter.rb', line 19 def content_sha_256 @content_sha_256 end |
#distinct_token_count ⇒ Object
Returns the value of attribute distinct_token_count.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_token_filter.rb', line 19 def distinct_token_count @distinct_token_count end |
#hash_count ⇒ Object
Returns the value of attribute hash_count.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_token_filter.rb', line 19 def hash_count @hash_count end |
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_token_filter.rb', line 19 def kmer_size @kmer_size end |
#set_bit_count ⇒ Object
Returns the value of attribute set_bit_count.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_token_filter.rb', line 19 def set_bit_count @set_bit_count end |