Class: GrapeSwagger::Rake::OapiTasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- GrapeSwagger::Rake::OapiTasks
- Includes:
- Rack::Test::Methods
- Defined in:
- lib/grape-swagger/rake/oapi_tasks.rb
Instance Attribute Summary collapse
-
#api_class ⇒ Object
readonly
Returns the value of attribute api_class.
-
#oapi ⇒ Object
readonly
Returns the value of attribute oapi.
Instance Method Summary collapse
-
#initialize(api_class) ⇒ OapiTasks
constructor
A new instance of OapiTasks.
Constructor Details
#initialize(api_class) ⇒ OapiTasks
Returns a new instance of OapiTasks.
13 14 15 16 17 18 |
# File 'lib/grape-swagger/rake/oapi_tasks.rb', line 13 def initialize(api_class) super() @api_class = api_class define_tasks end |
Instance Attribute Details
#api_class ⇒ Object (readonly)
Returns the value of attribute api_class.
11 12 13 |
# File 'lib/grape-swagger/rake/oapi_tasks.rb', line 11 def api_class @api_class end |
#oapi ⇒ Object (readonly)
Returns the value of attribute oapi.
10 11 12 |
# File 'lib/grape-swagger/rake/oapi_tasks.rb', line 10 def oapi @oapi end |