Class: Rafflesia::DiamondCatalogBuildRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  catalog: :catalog,
  dry_run: :dry_run,
  extra_args: :extra_args,
  input_file_name: :input_file_name,
  input_object_id: :input_object_id,
  input_path: :input_path,
  name: :name,
  output_dir: :output_dir,
  shard_count: :shard_count,
  store_root: :store_root,
  threads: :threads,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DiamondCatalogBuildRequest

Returns a new instance of DiamondCatalogBuildRequest.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 37

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @catalog = hash[:catalog]
  @dry_run = hash[:dry_run]
  @extra_args = (hash[:extra_args] || [])
  @input_file_name = hash[:input_file_name]
  @input_object_id = hash[:input_object_id]
  @input_path = hash[:input_path]
  @name = hash[:name]
  @output_dir = hash[:output_dir]
  @shard_count = hash[:shard_count]
  @store_root = hash[:store_root]
  @threads = hash[:threads]
  @version = hash[:version]
end

Instance Attribute Details

#catalogObject

Returns the value of attribute catalog.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def catalog
  @catalog
end

#dry_runObject

Returns the value of attribute dry_run.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def dry_run
  @dry_run
end

#extra_argsObject

Returns the value of attribute extra_args.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def extra_args
  @extra_args
end

#input_file_nameObject

Returns the value of attribute input_file_name.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def input_file_name
  @input_file_name
end

#input_object_idObject

Returns the value of attribute input_object_id.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def input_object_id
  @input_object_id
end

#input_pathObject

Returns the value of attribute input_path.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def input_path
  @input_path
end

#nameObject

Returns the value of attribute name.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def name
  @name
end

#output_dirObject

Returns the value of attribute output_dir.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def output_dir
  @output_dir
end

#shard_countObject

Returns the value of attribute shard_count.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def shard_count
  @shard_count
end

#store_rootObject

Returns the value of attribute store_root.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def store_root
  @store_root
end

#threadsObject

Returns the value of attribute threads.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def threads
  @threads
end

#versionObject

Returns the value of attribute version.



23
24
25
# File 'lib/rafflesia/sequences/diamond_catalog_build_request.rb', line 23

def version
  @version
end