Class: Rafflesia::FoldIndexVerifyRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  ref: :ref,
  segment_roles: :segment_roles,
  shards: :shards,
  target_dir: :target_dir
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldIndexVerifyRequest

Returns a new instance of FoldIndexVerifyRequest.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/proteins/fold_index_verify_request.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @ref = hash[:ref]
  @segment_roles = (hash[:segment_roles] || [])
  @shards = (hash[:shards] || [])
  @target_dir = hash[:target_dir]
end

Instance Attribute Details

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_verify_request.rb', line 17

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_verify_request.rb', line 17

def manifest_path
  @manifest_path
end

#refObject

Returns the value of attribute ref.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_verify_request.rb', line 17

def ref
  @ref
end

#segment_rolesObject

Returns the value of attribute segment_roles.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_verify_request.rb', line 17

def segment_roles
  @segment_roles
end

#shardsObject

Returns the value of attribute shards.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_verify_request.rb', line 17

def shards
  @shards
end

#target_dirObject

Returns the value of attribute target_dir.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_verify_request.rb', line 17

def target_dir
  @target_dir
end