Class: Legion::Extensions::Rfp::Generate::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::Rfp::Generate::Client
- Defined in:
- lib/legion/extensions/rfp/generate/client.rb
Constant Summary
Constants included from Runners::Templates
Runners::Templates::DEFAULT_TEMPLATES
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::Templates
#apply_template, #get_template, #list_templates, #suggest_template
Methods included from Runners::Sections
#generate_compliance_matrix, #generate_executive_summary, #generate_section_response
Methods included from Runners::Drafts
#generate_full_draft, #generate_response, #regenerate
Constructor Details
#initialize(base_url: nil, token: nil) ⇒ Client
Returns a new instance of Client.
20 21 22 |
# File 'lib/legion/extensions/rfp/generate/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/generate/client.rb', line 18 def opts @opts end |
Instance Method Details
#client(**override) ⇒ Object
24 25 26 |
# File 'lib/legion/extensions/rfp/generate/client.rb', line 24 def client(**override) super(**@opts, **override) end |