Class: Rafflesia::ProfileBuildRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  alignment_object_id: :alignment_object_id,
  alignment_path: :alignment_path,
  cache_mode: :cache_mode,
  dry_run: :dry_run,
  extra_args: :extra_args,
  name: :name,
  output_dir: :output_dir
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ProfileBuildRequest

Returns a new instance of ProfileBuildRequest.



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/rafflesia/sequences/profile_build_request.rb', line 27

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @alignment_object_id = hash[:alignment_object_id]
  @alignment_path = hash[:alignment_path]
  @cache_mode = hash[:cache_mode]
  @dry_run = hash[:dry_run]
  @extra_args = (hash[:extra_args] || [])
  @name = hash[:name]
  @output_dir = hash[:output_dir]
end

Instance Attribute Details

#alignment_object_idObject

Returns the value of attribute alignment_object_id.



18
19
20
# File 'lib/rafflesia/sequences/profile_build_request.rb', line 18

def alignment_object_id
  @alignment_object_id
end

#alignment_pathObject

Returns the value of attribute alignment_path.



18
19
20
# File 'lib/rafflesia/sequences/profile_build_request.rb', line 18

def alignment_path
  @alignment_path
end

#cache_modeObject

Returns the value of attribute cache_mode.



18
19
20
# File 'lib/rafflesia/sequences/profile_build_request.rb', line 18

def cache_mode
  @cache_mode
end

#dry_runObject

Returns the value of attribute dry_run.



18
19
20
# File 'lib/rafflesia/sequences/profile_build_request.rb', line 18

def dry_run
  @dry_run
end

#extra_argsObject

Returns the value of attribute extra_args.



18
19
20
# File 'lib/rafflesia/sequences/profile_build_request.rb', line 18

def extra_args
  @extra_args
end

#nameObject

Returns the value of attribute name.



18
19
20
# File 'lib/rafflesia/sequences/profile_build_request.rb', line 18

def name
  @name
end

#output_dirObject

Returns the value of attribute output_dir.



18
19
20
# File 'lib/rafflesia/sequences/profile_build_request.rb', line 18

def output_dir
  @output_dir
end