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
-
#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.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/grape-swagger/rake/oapi_tasks.rb', line 14 def initialize(api_class) super() if api_class.is_a? String @api_class_name = api_class else @api_class = api_class end define_tasks end |
Instance Attribute Details
#oapi ⇒ Object (readonly)
Returns the value of attribute oapi.
12 13 14 |
# File 'lib/grape-swagger/rake/oapi_tasks.rb', line 12 def oapi @oapi end |