Class: LinearSubmission

Inherits:
Order show all
Includes:
Submission::LinearRequestGraph
Defined in:
app/models/linear_submission.rb

Overview

this class it simplified version of Submission which is just a chain of request types without any choices

Constant Summary

Constants inherited from Order

Order::AssetTypeError, Order::DEFAULT_ASSET_INPUT_METHODS

Constants included from Submission::ProjectValidation

Submission::ProjectValidation::Error

Instance Attribute Summary

Attributes inherited from Order

#asset_input_methods, #info_differential, #input_field_infos, #request_type_ids_list

Instance Method Summary collapse

Methods included from Submission::LinearRequestGraph

#build_request_graph!

Methods inherited from Order

#add_comment, #all_assets, #all_samples, #asset_uuids, #assets=, #autodetection_default, #building?, #building_submission?, #collect_gigabases_expected?, #complete_building, #create_request_of_type!, #cross_compatible?, #cross_project_allowed, #cross_study_allowed, #duplicates_within, #first_request_type, #friendly_name, #generate_broadcast_event, #json_root, #multiplexed?, #multiplier_for, #next_request_type_id, #not_ready_samples, #on_delete_destroy_submission, render_class, #request_types_list, #samples, #sequencing_order?, #study_is_active, #subject_type

Methods included from Submission::AccessionBehaviour

#can_check_data_release_and_accession?, #check_data_release_and_accession_for_submission, included, #request_types_require_accessioning?

Methods included from Submission::RequestOptionsBehaviour

included, #request_options=

Methods included from Submission::ProjectValidation

#checking_project?, included, #save_after_unmarshalling, #submittable?, #validating?

Methods included from Submission::AssetGroupBehaviour

#complete_building_asset_group, included

Methods included from Uuid::Uuidable

included, #unsaved_uuid!, #uuid

Methods inherited from ApplicationRecord

alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Instance Method Details

#request_type_idsObject



11
12
13
# File 'app/models/linear_submission.rb', line 11

def request_type_ids
  request_type_ids_list.map(&:first)
end

#request_type_ids=(id_list) ⇒ Object



7
8
9
# File 'app/models/linear_submission.rb', line 7

def request_type_ids=(id_list)
  self.request_type_ids_list = id_list.map { |i| [i] }
end