Class: Rafflesia::FoldIndexRegistryRecord

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

Constant Summary collapse

HASH_ATTRS =
{
  artifact_count: :artifact_count,
  backend: :backend,
  engine_version: :engine_version,
  manifest_id: :manifest_id,
  manifest_object: :manifest_object,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  name: :name,
  published_at: :published_at,
  ref: :ref,
  routing_benchmark_object_id: :routing_benchmark_object_id,
  routing_benchmark_passed: :routing_benchmark_passed,
  shard_count: :shard_count,
  source_count: :source_count,
  total_size_bytes: :total_size_bytes,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldIndexRegistryRecord

Returns a new instance of FoldIndexRegistryRecord.



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 45

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @artifact_count = hash[:artifact_count]
  @backend = hash[:backend]
  @engine_version = hash[:engine_version]
  @manifest_id = hash[:manifest_id]
  @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @name = hash[:name]
  @published_at = hash[:published_at]
  @ref = hash[:ref]
  @routing_benchmark_object_id = hash[:routing_benchmark_object_id]
  @routing_benchmark_passed = hash[:routing_benchmark_passed]
  @shard_count = hash[:shard_count]
  @source_count = hash[:source_count]
  @total_size_bytes = hash[:total_size_bytes]
  @version = hash[:version]
end

Instance Attribute Details

#artifact_countObject

Returns the value of attribute artifact_count.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def artifact_count
  @artifact_count
end

#backendObject

Returns the value of attribute backend.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def backend
  @backend
end

#engine_versionObject

Returns the value of attribute engine_version.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def engine_version
  @engine_version
end

#manifest_idObject

Returns the value of attribute manifest_id.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def manifest_id
  @manifest_id
end

#manifest_objectObject

Returns the value of attribute manifest_object.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def manifest_object
  @manifest_object
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def manifest_path
  @manifest_path
end

#nameObject

Returns the value of attribute name.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def name
  @name
end

#published_atObject

Returns the value of attribute published_at.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def published_at
  @published_at
end

#refObject

Returns the value of attribute ref.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def ref
  @ref
end

#routing_benchmark_object_idObject

Returns the value of attribute routing_benchmark_object_id.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def routing_benchmark_object_id
  @routing_benchmark_object_id
end

#routing_benchmark_passedObject

Returns the value of attribute routing_benchmark_passed.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def routing_benchmark_passed
  @routing_benchmark_passed
end

#shard_countObject

Returns the value of attribute shard_count.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def shard_count
  @shard_count
end

#source_countObject

Returns the value of attribute source_count.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def source_count
  @source_count
end

#total_size_bytesObject

Returns the value of attribute total_size_bytes.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def total_size_bytes
  @total_size_bytes
end

#versionObject

Returns the value of attribute version.



27
28
29
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27

def version
  @version
end