Class: Rafflesia::SequenceSeedIndexSegmentRef

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb

Constant Summary collapse

HASH_ATTRS =
{
  content_sha256: :content_sha_256,
  created_at: :created_at,
  directory_object_id: :directory_object_id,
  fasta_object_id: :fasta_object_id,
  index_id: :index_id,
  kmer_size: :kmer_size,
  level: :level,
  manifest_object_id: :manifest_object_id,
  ordinal: :ordinal,
  payload_block_count: :payload_block_count,
  posting_block_count: :posting_block_count,
  residue_count: :residue_count,
  segment_id: :segment_id,
  sequence_count: :sequence_count,
  token_filter: :token_filter
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceSeedIndexSegmentRef

Returns a new instance of SequenceSeedIndexSegmentRef.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 43

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @content_sha_256 = hash[:content_sha256]
  @created_at = hash[:created_at]
  @directory_object_id = hash[:directory_object_id]
  @fasta_object_id = hash[:fasta_object_id]
  @index_id = hash[:index_id]
  @kmer_size = hash[:kmer_size]
  @level = hash[:level]
  @manifest_object_id = hash[:manifest_object_id]
  @ordinal = hash[:ordinal]
  @payload_block_count = hash[:payload_block_count]
  @posting_block_count = hash[:posting_block_count]
  @residue_count = hash[:residue_count]
  @segment_id = hash[:segment_id]
  @sequence_count = hash[:sequence_count]
  @token_filter = hash[:token_filter] ? Rafflesia::SequenceSeedIndexTokenFilter.new(hash[:token_filter]) : nil
end

Instance Attribute Details

#content_sha_256Object

Returns the value of attribute content_sha_256.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def content_sha_256
  @content_sha_256
end

#created_atObject

Returns the value of attribute created_at.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def created_at
  @created_at
end

#directory_object_idObject

Returns the value of attribute directory_object_id.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def directory_object_id
  @directory_object_id
end

#fasta_object_idObject

Returns the value of attribute fasta_object_id.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def fasta_object_id
  @fasta_object_id
end

#index_idObject

Returns the value of attribute index_id.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def index_id
  @index_id
end

#kmer_sizeObject

Returns the value of attribute kmer_size.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def kmer_size
  @kmer_size
end

#levelObject

Returns the value of attribute level.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def level
  @level
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def manifest_object_id
  @manifest_object_id
end

#ordinalObject

Returns the value of attribute ordinal.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def ordinal
  @ordinal
end

#payload_block_countObject

Returns the value of attribute payload_block_count.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def payload_block_count
  @payload_block_count
end

#posting_block_countObject

Returns the value of attribute posting_block_count.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def posting_block_count
  @posting_block_count
end

#residue_countObject

Returns the value of attribute residue_count.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def residue_count
  @residue_count
end

#segment_idObject

Returns the value of attribute segment_id.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def segment_id
  @segment_id
end

#sequence_countObject

Returns the value of attribute sequence_count.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def sequence_count
  @sequence_count
end

#token_filterObject

Returns the value of attribute token_filter.



26
27
28
# File 'lib/rafflesia/sequences/sequence_seed_index_segment_ref.rb', line 26

def token_filter
  @token_filter
end