Class: Rafflesia::CacheMaterializationExplanation

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_atObject

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

#errorObject

Returns the value of attribute error.



25
26
27
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25

def error
  @error
end

#file_countObject

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

#keyObject

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_atObject

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_idObject

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

#metadataObject

Returns the value of attribute metadata.



25
26
27
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25

def 
  @metadata
end

#namespaceObject

Returns the value of attribute namespace.



25
26
27
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25

def namespace
  @namespace
end

#owner_idObject

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_atObject

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

#statusObject

Returns the value of attribute status.



25
26
27
# File 'lib/rafflesia/cache/cache_materialization_explanation.rb', line 25

def status
  @status
end

#target_dirObject

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_bytesObject

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_atObject

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