Class: Rafflesia::FoldIndexMaterializedFile
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldIndexMaterializedFile
- Defined in:
- lib/rafflesia/proteins/fold_index_materialized_file.rb
Constant Summary collapse
- HASH_ATTRS =
{ cache_hit: :cache_hit, file_name: :file_name, lock_wait_ms: :lock_wait_ms, path: :path, role: :role, sha256: :sha_256, shard_id: :shard_id, size_bytes: :size_bytes }.freeze
Instance Attribute Summary collapse
-
#cache_hit ⇒ Object
Returns the value of attribute cache_hit.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#lock_wait_ms ⇒ Object
Returns the value of attribute lock_wait_ms.
-
#path ⇒ Object
Returns the value of attribute path.
-
#role ⇒ Object
Returns the value of attribute role.
-
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
-
#shard_id ⇒ Object
Returns the value of attribute shard_id.
-
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldIndexMaterializedFile
constructor
A new instance of FoldIndexMaterializedFile.
Constructor Details
#initialize(json) ⇒ FoldIndexMaterializedFile
Returns a new instance of FoldIndexMaterializedFile.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/proteins/fold_index_materialized_file.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @cache_hit = hash[:cache_hit] @file_name = hash[:file_name] @lock_wait_ms = hash[:lock_wait_ms] @path = hash[:path] @role = hash[:role] @sha_256 = hash[:sha256] @shard_id = hash[:shard_id] @size_bytes = hash[:size_bytes] end |
Instance Attribute Details
#cache_hit ⇒ Object
Returns the value of attribute cache_hit.
19 20 21 |
# File 'lib/rafflesia/proteins/fold_index_materialized_file.rb', line 19 def cache_hit @cache_hit end |
#file_name ⇒ Object
Returns the value of attribute file_name.
19 20 21 |
# File 'lib/rafflesia/proteins/fold_index_materialized_file.rb', line 19 def file_name @file_name end |
#lock_wait_ms ⇒ Object
Returns the value of attribute lock_wait_ms.
19 20 21 |
# File 'lib/rafflesia/proteins/fold_index_materialized_file.rb', line 19 def lock_wait_ms @lock_wait_ms end |
#path ⇒ Object
Returns the value of attribute path.
19 20 21 |
# File 'lib/rafflesia/proteins/fold_index_materialized_file.rb', line 19 def path @path end |
#role ⇒ Object
Returns the value of attribute role.
19 20 21 |
# File 'lib/rafflesia/proteins/fold_index_materialized_file.rb', line 19 def role @role end |
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
19 20 21 |
# File 'lib/rafflesia/proteins/fold_index_materialized_file.rb', line 19 def sha_256 @sha_256 end |
#shard_id ⇒ Object
Returns the value of attribute shard_id.
19 20 21 |
# File 'lib/rafflesia/proteins/fold_index_materialized_file.rb', line 19 def shard_id @shard_id end |
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
19 20 21 |
# File 'lib/rafflesia/proteins/fold_index_materialized_file.rb', line 19 def size_bytes @size_bytes end |