Class: Rafflesia::CacheMaterializationExplanation
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CacheMaterializationExplanation
- Defined in:
- lib/rafflesia/cache/cache_materialization_explanation.rb
Constant Summary collapse
- HASH_ATTRS =
{ created_at: :created_at, error: :error, file_count: :file_count, key: :key, lease_expires_at: :lease_expires_at, manifest_object_id: :manifest_object_id, metadata: :metadata, namespace: :namespace, owner_id: :owner_id, ready_at: :ready_at, status: :status, target_dir: :target_dir, total_size_bytes: :total_size_bytes, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#error ⇒ Object
Returns the value of attribute error.
-
#file_count ⇒ Object
Returns the value of attribute file_count.
-
#key ⇒ Object
Returns the value of attribute key.
-
#lease_expires_at ⇒ Object
Returns the value of attribute lease_expires_at.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#owner_id ⇒ Object
Returns the value of attribute owner_id.
-
#ready_at ⇒ Object
Returns the value of attribute ready_at.
-
#status ⇒ Object
Returns the value of attribute status.
-
#target_dir ⇒ Object
Returns the value of attribute target_dir.
-
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ CacheMaterializationExplanation
constructor
A new instance of CacheMaterializationExplanation.
Constructor Details
#initialize(json) ⇒ CacheMaterializationExplanation
Returns a new instance of CacheMaterializationExplanation.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 41 def initialize(json) super() hash = self.class.normalize(json) @created_at = hash[:created_at] @error = hash[:error] @file_count = hash[:file_count] @key = hash[:key] @lease_expires_at = hash[:lease_expires_at] @manifest_object_id = hash[:manifest_object_id] @metadata = hash[:metadata] || {} @namespace = hash[:namespace] @owner_id = hash[:owner_id] @ready_at = hash[:ready_at] @status = hash[:status] @target_dir = hash[:target_dir] @total_size_bytes = hash[:total_size_bytes] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def created_at @created_at end |
#error ⇒ Object
Returns the value of attribute error.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def error @error end |
#file_count ⇒ Object
Returns the value of attribute file_count.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def file_count @file_count end |
#key ⇒ Object
Returns the value of attribute key.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def key @key end |
#lease_expires_at ⇒ Object
Returns the value of attribute lease_expires_at.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def lease_expires_at @lease_expires_at end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def manifest_object_id @manifest_object_id end |
#metadata ⇒ Object
Returns the value of attribute metadata.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def @metadata end |
#namespace ⇒ Object
Returns the value of attribute namespace.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def namespace @namespace end |
#owner_id ⇒ Object
Returns the value of attribute owner_id.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def owner_id @owner_id end |
#ready_at ⇒ Object
Returns the value of attribute ready_at.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def ready_at @ready_at end |
#status ⇒ Object
Returns the value of attribute status.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def status @status end |
#target_dir ⇒ Object
Returns the value of attribute target_dir.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def target_dir @target_dir end |
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def total_size_bytes @total_size_bytes end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
25 26 27 |
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25 def updated_at @updated_at end |