Class: Swagger::Api::Components
- Inherits:
-
Object
- Object
- Swagger::Api::Components
- Includes:
- ActiveAttr::Model
- Defined in:
- lib/swagger/api/components.rb
Instance Attribute Summary collapse
-
#controllers ⇒ Object
Returns the value of attribute controllers.
Instance Method Summary collapse
Instance Attribute Details
#controllers ⇒ Object
Returns the value of attribute controllers.
5 6 7 |
# File 'lib/swagger/api/components.rb', line 5 def controllers @controllers end |
Instance Method Details
#create ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/swagger/api/components.rb', line 7 def create components = {} controllers.each do |controller| components[controller.model] = ComponentSchema.new(controller: controller).create end components end |