Class: Rafflesia::DatasetCompactRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/dataset_compact_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  manifest_path: :manifest_path,
  output_dir: :output_dir,
  output_manifest_path: :output_manifest_path,
  replace: :replace,
  shard_size: :shard_size
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatasetCompactRequest

Returns a new instance of DatasetCompactRequest.



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

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @manifest_path = hash[:manifest_path]
  @output_dir = hash[:output_dir]
  @output_manifest_path = hash[:output_manifest_path]
  @replace = hash[:replace]
  @shard_size = hash[:shard_size]
end

Instance Attribute Details

#manifest_pathObject

Returns the value of attribute manifest_path.



16
17
18
# File 'lib/rafflesia/datasets/dataset_compact_request.rb', line 16

def manifest_path
  @manifest_path
end

#output_dirObject

Returns the value of attribute output_dir.



16
17
18
# File 'lib/rafflesia/datasets/dataset_compact_request.rb', line 16

def output_dir
  @output_dir
end

#output_manifest_pathObject

Returns the value of attribute output_manifest_path.



16
17
18
# File 'lib/rafflesia/datasets/dataset_compact_request.rb', line 16

def output_manifest_path
  @output_manifest_path
end

#replaceObject

Returns the value of attribute replace.



16
17
18
# File 'lib/rafflesia/datasets/dataset_compact_request.rb', line 16

def replace
  @replace
end

#shard_sizeObject

Returns the value of attribute shard_size.



16
17
18
# File 'lib/rafflesia/datasets/dataset_compact_request.rb', line 16

def shard_size
  @shard_size
end