Module: Swagger::Docs::Methods::ClassMethods

Defined in:
lib/swagger/docs/methods.rb

Instance Method Summary collapse

Instance Method Details

#swagger_actionsObject



18
19
20
# File 'lib/swagger/docs/methods.rb', line 18

def swagger_actions
  @swagger_dsl
end

#swagger_configObject



22
23
24
# File 'lib/swagger/docs/methods.rb', line 22

def swagger_config
  @swagger_config ||= {}
end

#swagger_controller(controller, description) ⇒ Object



9
10
11
12
# File 'lib/swagger/docs/methods.rb', line 9

def swagger_controller(controller, description)
  swagger_config[:controller] = controller
  swagger_config[:description] = description
end

#swagger_model(model) ⇒ Object



14
15
16
# File 'lib/swagger/docs/methods.rb', line 14

def swagger_model(model)
  swagger_config[:model] = model
end