Class: Rafflesia::FoldIndexPublishData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_index_publish_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  artifact_count: :artifact_count,
  manifest: :manifest,
  manifest_object: :manifest_object,
  manifest_path: :manifest_path,
  ref: :ref,
  registry_record: :registry_record,
  routing_benchmark: :routing_benchmark,
  stored_object_count: :stored_object_count,
  total_size_bytes: :total_size_bytes
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldIndexPublishData

Returns a new instance of FoldIndexPublishData.



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/rafflesia/proteins/fold_index_publish_data.rb', line 31

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @artifact_count = hash[:artifact_count]
  @manifest = hash[:manifest] ? Rafflesia::FoldIndexManifest.new(hash[:manifest]) : nil
  @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil
  @manifest_path = hash[:manifest_path]
  @ref = hash[:ref]
  @registry_record = hash[:registry_record] ? Rafflesia::FoldIndexRegistryRecord.new(hash[:registry_record]) : nil
  @routing_benchmark = hash[:routing_benchmark] ? Rafflesia::FoldIndexRoutingBenchmarkSummary.new(hash[:routing_benchmark]) : nil
  @stored_object_count = hash[:stored_object_count]
  @total_size_bytes = hash[:total_size_bytes]
end

Instance Attribute Details

#artifact_countObject

Returns the value of attribute artifact_count.



20
21
22
# File 'lib/rafflesia/proteins/fold_index_publish_data.rb', line 20

def artifact_count
  @artifact_count
end

#manifestObject

Returns the value of attribute manifest.



20
21
22
# File 'lib/rafflesia/proteins/fold_index_publish_data.rb', line 20

def manifest
  @manifest
end

#manifest_objectObject

Returns the value of attribute manifest_object.



20
21
22
# File 'lib/rafflesia/proteins/fold_index_publish_data.rb', line 20

def manifest_object
  @manifest_object
end

#manifest_pathObject

Returns the value of attribute manifest_path.



20
21
22
# File 'lib/rafflesia/proteins/fold_index_publish_data.rb', line 20

def manifest_path
  @manifest_path
end

#refObject

Returns the value of attribute ref.



20
21
22
# File 'lib/rafflesia/proteins/fold_index_publish_data.rb', line 20

def ref
  @ref
end

#registry_recordObject

Returns the value of attribute registry_record.



20
21
22
# File 'lib/rafflesia/proteins/fold_index_publish_data.rb', line 20

def registry_record
  @registry_record
end

#routing_benchmarkObject

Returns the value of attribute routing_benchmark.



20
21
22
# File 'lib/rafflesia/proteins/fold_index_publish_data.rb', line 20

def routing_benchmark
  @routing_benchmark
end

#stored_object_countObject

Returns the value of attribute stored_object_count.



20
21
22
# File 'lib/rafflesia/proteins/fold_index_publish_data.rb', line 20

def stored_object_count
  @stored_object_count
end

#total_size_bytesObject

Returns the value of attribute total_size_bytes.



20
21
22
# File 'lib/rafflesia/proteins/fold_index_publish_data.rb', line 20

def total_size_bytes
  @total_size_bytes
end