Class: Etna::Clients::Polyphemus::RedcapJobRequest
- Inherits:
-
Struct
- Object
- Struct
- Etna::Clients::Polyphemus::RedcapJobRequest
- Includes:
- JsonSerializableStruct
- Defined in:
- lib/etna/clients/polyphemus/models.rb
Instance Attribute Summary collapse
-
#commit ⇒ Object
Returns the value of attribute commit.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#model_names ⇒ Object
Returns the value of attribute model_names.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
-
#redcap_tokens ⇒ Object
Returns the value of attribute redcap_tokens.
Instance Method Summary collapse
-
#initialize(**params) ⇒ RedcapJobRequest
constructor
A new instance of RedcapJobRequest.
- #to_json ⇒ Object
Methods included from JsonSerializableStruct
Constructor Details
#initialize(**params) ⇒ RedcapJobRequest
Returns a new instance of RedcapJobRequest.
19 20 21 |
# File 'lib/etna/clients/polyphemus/models.rb', line 19 def initialize(**params) super({model_names: 'all', mode: nil, commit: false}.update(params)) end |
Instance Attribute Details
#commit ⇒ Object
Returns the value of attribute commit
16 17 18 |
# File 'lib/etna/clients/polyphemus/models.rb', line 16 def commit @commit end |
#mode ⇒ Object
Returns the value of attribute mode
16 17 18 |
# File 'lib/etna/clients/polyphemus/models.rb', line 16 def mode @mode end |
#model_names ⇒ Object
Returns the value of attribute model_names
16 17 18 |
# File 'lib/etna/clients/polyphemus/models.rb', line 16 def model_names @model_names end |
#project_name ⇒ Object
Returns the value of attribute project_name
16 17 18 |
# File 'lib/etna/clients/polyphemus/models.rb', line 16 def project_name @project_name end |
#redcap_tokens ⇒ Object
Returns the value of attribute redcap_tokens
16 17 18 |
# File 'lib/etna/clients/polyphemus/models.rb', line 16 def redcap_tokens @redcap_tokens end |
Instance Method Details
#to_json ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/etna/clients/polyphemus/models.rb', line 23 def to_json { job_type: Etna::Clients::Polyphemus::JobType::REDCAP, job_params: { commit: commit, model_names: model_names, redcap_tokens: redcap_tokens, mode: mode } }.to_json end |