Class: Rafflesia::SearchSegmentObjectReadPlan
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SearchSegmentObjectReadPlan
- Defined in:
- lib/rafflesia/proteins/search_segment_object_read_plan.rb
Constant Summary collapse
- HASH_ATTRS =
{ block_index: :block_index, end_key: :end_key, object_id: :object_id, object_key: :object_key, range_length_bytes: :range_length_bytes, range_offset_bytes: :range_offset_bytes, role: :role, sha256: :sha_256, size_bytes: :size_bytes, start_key: :start_key, storage_backend: :storage_backend }.freeze
Instance Attribute Summary collapse
-
#block_index ⇒ Object
Returns the value of attribute block_index.
-
#end_key ⇒ Object
Returns the value of attribute end_key.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#object_key ⇒ Object
Returns the value of attribute object_key.
-
#range_length_bytes ⇒ Object
Returns the value of attribute range_length_bytes.
-
#range_offset_bytes ⇒ Object
Returns the value of attribute range_offset_bytes.
-
#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.
-
#start_key ⇒ Object
Returns the value of attribute start_key.
-
#storage_backend ⇒ Object
Returns the value of attribute storage_backend.
Instance Method Summary collapse
-
#initialize(json) ⇒ SearchSegmentObjectReadPlan
constructor
A new instance of SearchSegmentObjectReadPlan.
Constructor Details
#initialize(json) ⇒ SearchSegmentObjectReadPlan
Returns a new instance of SearchSegmentObjectReadPlan.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @block_index = hash[:block_index] @end_key = hash[:end_key] @object_id = hash[:object_id] @object_key = hash[:object_key] @range_length_bytes = hash[:range_length_bytes] @range_offset_bytes = hash[:range_offset_bytes] @role = hash[:role] @sha_256 = hash[:sha256] @size_bytes = hash[:size_bytes] @start_key = hash[:start_key] @storage_backend = hash[:storage_backend] end |
Instance Attribute Details
#block_index ⇒ Object
Returns the value of attribute block_index.
22 23 24 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 22 def block_index @block_index end |
#end_key ⇒ Object
Returns the value of attribute end_key.
22 23 24 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 22 def end_key @end_key end |
#object_id ⇒ Object
Returns the value of attribute object_id.
22 23 24 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 22 def object_id @object_id end |
#object_key ⇒ Object
Returns the value of attribute object_key.
22 23 24 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 22 def object_key @object_key end |
#range_length_bytes ⇒ Object
Returns the value of attribute range_length_bytes.
22 23 24 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 22 def range_length_bytes @range_length_bytes end |
#range_offset_bytes ⇒ Object
Returns the value of attribute range_offset_bytes.
22 23 24 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 22 def range_offset_bytes @range_offset_bytes end |
#role ⇒ Object
Returns the value of attribute role.
22 23 24 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 22 def role @role end |
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
22 23 24 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 22 def sha_256 @sha_256 end |
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
22 23 24 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 22 def size_bytes @size_bytes end |
#start_key ⇒ Object
Returns the value of attribute start_key.
22 23 24 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 22 def start_key @start_key end |
#storage_backend ⇒ Object
Returns the value of attribute storage_backend.
22 23 24 |
# File 'lib/rafflesia/proteins/search_segment_object_read_plan.rb', line 22 def storage_backend @storage_backend end |