Class: Rafflesia::SearchSegmentGcRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/search_segment_gc_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  candidate_manifest_object_ids: :candidate_manifest_object_ids,
  candidate_manifest_paths: :candidate_manifest_paths,
  dry_run: :dry_run,
  keep_manifest_object_ids: :keep_manifest_object_ids,
  keep_manifest_paths: :keep_manifest_paths
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SearchSegmentGcRequest

Returns a new instance of SearchSegmentGcRequest.



23
24
25
26
27
28
29
30
31
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 23

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @candidate_manifest_object_ids = (hash[:candidate_manifest_object_ids] || [])
  @candidate_manifest_paths = (hash[:candidate_manifest_paths] || [])
  @dry_run = hash[:dry_run]
  @keep_manifest_object_ids = (hash[:keep_manifest_object_ids] || [])
  @keep_manifest_paths = (hash[:keep_manifest_paths] || [])
end

Instance Attribute Details

#candidate_manifest_object_idsObject

Returns the value of attribute candidate_manifest_object_ids.



16
17
18
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 16

def candidate_manifest_object_ids
  @candidate_manifest_object_ids
end

#candidate_manifest_pathsObject

Returns the value of attribute candidate_manifest_paths.



16
17
18
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 16

def candidate_manifest_paths
  @candidate_manifest_paths
end

#dry_runObject

Returns the value of attribute dry_run.



16
17
18
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 16

def dry_run
  @dry_run
end

#keep_manifest_object_idsObject

Returns the value of attribute keep_manifest_object_ids.



16
17
18
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 16

def keep_manifest_object_ids
  @keep_manifest_object_ids
end

#keep_manifest_pathsObject

Returns the value of attribute keep_manifest_paths.



16
17
18
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 16

def keep_manifest_paths
  @keep_manifest_paths
end