Class: EgaAccessionService

Inherits:
AccessionService show all
Defined in:
app/models/ega_accession_service.rb

Overview

rubocop:todo Style/Documentation

Constant Summary

Constants inherited from AccessionService

AccessionService::AccessionServiceError, AccessionService::CenterName, AccessionService::Hold, AccessionService::NumberNotGenerated, AccessionService::NumberNotRequired, AccessionService::Protect

Instance Method Summary collapse

Methods inherited from AccessionService

#accession_dac_xml, #accession_policy_xml, #accession_sample_xml, #accession_study_xml, #dac_visibility, #policy_visibility, #submit, #submit_sample_for_user, #submit_study_for_user

Instance Method Details

#accession_optionsObject


10
11
12
# File 'app/models/ega_accession_service.rb', line 10

def accession_options
  configatron.accession.ega!.to_hash
end

#brokerObject


22
23
24
# File 'app/models/ega_accession_service.rb', line 22

def broker
  'EGA'
end

#private?Boolean

Returns:

  • (Boolean)

35
36
37
# File 'app/models/ega_accession_service.rb', line 35

def private?
  true
end

#providerObject


6
7
8
# File 'app/models/ega_accession_service.rb', line 6

def provider
  :EGA
end

#sample_visibility(_sample) ⇒ Object


14
15
16
# File 'app/models/ega_accession_service.rb', line 14

def sample_visibility(_sample)
  Protect
end

#study_visibility(_study) ⇒ Object


18
19
20
# File 'app/models/ega_accession_service.rb', line 18

def study_visibility(_study)
  Protect
end

#submit_dac_for_user(study, user) ⇒ Object


26
27
28
# File 'app/models/ega_accession_service.rb', line 26

def submit_dac_for_user(study, user)
  submit(user, Accessionable::Dac.new(study))
end

#submit_policy_for_user(study, user) ⇒ Object


30
31
32
33
# File 'app/models/ega_accession_service.rb', line 30

def submit_policy_for_user(study, user)
  policy = Accessionable::Policy.new(study)
  submit(user, policy)
end