Class: Rafflesia::SequenceSeedIndexObjectReadPlan

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

Constant Summary collapse

HASH_ATTRS =
{
  block_index: :block_index,
  object_id: :object_id,
  object_key: :object_key,
  range_length: :range_length,
  range_offset: :range_offset,
  role: :role,
  sha256: :sha_256,
  size_bytes: :size_bytes,
  storage_backend: :storage_backend,
  token: :token
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceSeedIndexObjectReadPlan

Returns a new instance of SequenceSeedIndexObjectReadPlan.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/sequences/sequence_seed_index_object_read_plan.rb', line 33

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @block_index = hash[:block_index]
  @object_id = hash[:object_id]
  @object_key = hash[:object_key]
  @range_length = hash[:range_length]
  @range_offset = hash[:range_offset]
  @role = hash[:role]
  @sha_256 = hash[:sha256]
  @size_bytes = hash[:size_bytes]
  @storage_backend = hash[:storage_backend]
  @token = hash[:token]
end

Instance Attribute Details

#block_indexObject

Returns the value of attribute block_index.



21
22
23
# File 'lib/rafflesia/sequences/sequence_seed_index_object_read_plan.rb', line 21

def block_index
  @block_index
end

#object_idObject

Returns the value of attribute object_id.



21
22
23
# File 'lib/rafflesia/sequences/sequence_seed_index_object_read_plan.rb', line 21

def object_id
  @object_id
end

#object_keyObject

Returns the value of attribute object_key.



21
22
23
# File 'lib/rafflesia/sequences/sequence_seed_index_object_read_plan.rb', line 21

def object_key
  @object_key
end

#range_lengthObject

Returns the value of attribute range_length.



21
22
23
# File 'lib/rafflesia/sequences/sequence_seed_index_object_read_plan.rb', line 21

def range_length
  @range_length
end

#range_offsetObject

Returns the value of attribute range_offset.



21
22
23
# File 'lib/rafflesia/sequences/sequence_seed_index_object_read_plan.rb', line 21

def range_offset
  @range_offset
end

#roleObject

Returns the value of attribute role.



21
22
23
# File 'lib/rafflesia/sequences/sequence_seed_index_object_read_plan.rb', line 21

def role
  @role
end

#sha_256Object

Returns the value of attribute sha_256.



21
22
23
# File 'lib/rafflesia/sequences/sequence_seed_index_object_read_plan.rb', line 21

def sha_256
  @sha_256
end

#size_bytesObject

Returns the value of attribute size_bytes.



21
22
23
# File 'lib/rafflesia/sequences/sequence_seed_index_object_read_plan.rb', line 21

def size_bytes
  @size_bytes
end

#storage_backendObject

Returns the value of attribute storage_backend.



21
22
23
# File 'lib/rafflesia/sequences/sequence_seed_index_object_read_plan.rb', line 21

def storage_backend
  @storage_backend
end

#tokenObject

Returns the value of attribute token.



21
22
23
# File 'lib/rafflesia/sequences/sequence_seed_index_object_read_plan.rb', line 21

def token
  @token
end