Class: Rafflesia::SequenceSeedIndexObjectReadPlan
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceSeedIndexObjectReadPlan
- 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
-
#block_index ⇒ Object
Returns the value of attribute block_index.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#object_key ⇒ Object
Returns the value of attribute object_key.
-
#range_length ⇒ Object
Returns the value of attribute range_length.
-
#range_offset ⇒ Object
Returns the value of attribute range_offset.
-
#role ⇒ Object
Returns the value of attribute role.
-
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
-
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
-
#storage_backend ⇒ Object
Returns the value of attribute storage_backend.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceSeedIndexObjectReadPlan
constructor
A new instance of SequenceSeedIndexObjectReadPlan.
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_index ⇒ Object
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_id ⇒ Object
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_key ⇒ Object
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_length ⇒ Object
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_offset ⇒ Object
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 |
#role ⇒ Object
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_256 ⇒ Object
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_bytes ⇒ Object
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_backend ⇒ Object
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 |
#token ⇒ Object
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 |