Class: GrapeSwagger::Rake::OapiTasks

Inherits:
Rake::TaskLib
  • Object
show all
Includes:
Rack::Test::Methods
Defined in:
lib/grape-swagger/rake/oapi_tasks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_class) ⇒ OapiTasks

Returns a new instance of OapiTasks.



15
16
17
18
19
20
# File 'lib/grape-swagger/rake/oapi_tasks.rb', line 15

def initialize(api_class)
  super()

  @api_class = api_class
  define_tasks
end

Instance Attribute Details

#api_classObject (readonly)

Returns the value of attribute api_class.



13
14
15
# File 'lib/grape-swagger/rake/oapi_tasks.rb', line 13

def api_class
  @api_class
end

#oapiObject (readonly)

Returns the value of attribute oapi.



12
13
14
# File 'lib/grape-swagger/rake/oapi_tasks.rb', line 12

def oapi
  @oapi
end