Class: Legion::Extensions::Rfp::Review::Client

Inherits:
Object
  • Object
show all
Includes:
Helpers::Client, Runners::Approvals, Runners::Comments, Runners::Workflows
Defined in:
lib/legion/extensions/rfp/review/client.rb

Constant Summary

Constants included from Runners::Workflows

Runners::Workflows::STATUSES

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#optsObject (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