Class: Legion::Extensions::Rfp::Review::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::Rfp::Review::Client
- Defined in:
- lib/legion/extensions/rfp/review/client.rb
Constant Summary
Constants included from Runners::Workflows
Instance Attribute Summary collapse
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
- #client(**override) ⇒ Object
-
#initialize(base_url: nil, token: nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Runners::Approvals
#approve_proposal, #approve_section, #check_readiness, #reject_section
Methods included from Runners::Comments
#add_comment, #list_comments, #request_revision, #resolve_comment
Methods included from Runners::Workflows
#create_workflow, #finalize, #get_workflow, #submit_for_review, #update_section_status, #update_status
Constructor Details
#initialize(base_url: nil, token: nil) ⇒ Client
Returns a new instance of Client.
20 21 22 |
# File 'lib/legion/extensions/rfp/review/client.rb', line 20 def initialize(base_url: nil, token: nil, **) @opts = { base_url: base_url, token: token }.compact end |
Instance Attribute Details
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
18 19 20 |
# File 'lib/legion/extensions/rfp/review/client.rb', line 18 def opts @opts end |
Instance Method Details
#client(**override) ⇒ Object
24 25 26 |
# File 'lib/legion/extensions/rfp/review/client.rb', line 24 def client(**override) super(**@opts, **override) end |