Class: SwaggerApi::ComponentSchema

Inherits:
Object
  • Object
show all
Includes:
ActiveAttr::Model, SwaggerApi::Concerns::Columns
Defined in:
lib/swagger_api/component_schema.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#controllerObject

Returns the value of attribute controller.



7
8
9
# File 'lib/swagger_api/component_schema.rb', line 7

def controller
  @controller
end

Instance Method Details

#createObject



9
10
11
12
13
14
15
# File 'lib/swagger_api/component_schema.rb', line 9

def create
  {
    required: required,
    properties: properties,
    type: 'object'
  }
end