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.



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

#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