Class: Rafflesia::DatasetCompactRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetCompactRequest
- 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
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#output_manifest_path ⇒ Object
Returns the value of attribute output_manifest_path.
-
#replace ⇒ Object
Returns the value of attribute replace.
-
#shard_size ⇒ Object
Returns the value of attribute shard_size.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetCompactRequest
constructor
A new instance of DatasetCompactRequest.
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_path ⇒ Object
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_dir ⇒ Object
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_path ⇒ Object
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 |
#replace ⇒ Object
Returns the value of attribute replace.
16 17 18 |
# File 'lib/rafflesia/datasets/dataset_compact_request.rb', line 16 def replace @replace end |
#shard_size ⇒ Object
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 |