Class: GrapeOAS::Rake::OasTasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- GrapeOAS::Rake::OasTasks
- Defined in:
- lib/grape_oas/rake/oas_tasks.rb
Overview
Rake tasks for generating and validating OpenAPI documentation.
Instance Attribute Summary collapse
-
#api_class ⇒ Object
readonly
Returns the value of attribute api_class.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(api_class, **options) ⇒ OasTasks
constructor
A new instance of OasTasks.
Constructor Details
#initialize(api_class, **options) ⇒ OasTasks
Returns a new instance of OasTasks.
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/grape_oas/rake/oas_tasks.rb', line 23 def initialize(api_class, **) super() if api_class.is_a?(String) @api_class_name = api_class else @api_class = api_class end @options = define_tasks end |
Instance Attribute Details
#api_class ⇒ Object (readonly)
Returns the value of attribute api_class.
19 20 21 |
# File 'lib/grape_oas/rake/oas_tasks.rb', line 19 def api_class @api_class end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
19 20 21 |
# File 'lib/grape_oas/rake/oas_tasks.rb', line 19 def @options end |