Class: Swagger::Api::ComponentSchema

Inherits:
Object
  • Object
show all
Includes:
ActiveAttr::Model, Swagger::Api::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.



6
7
8
# File 'lib/swagger/api/component_schema.rb', line 6

def controller
  @controller
end

Instance Method Details

#createObject



8
9
10
11
12
13
14
# File 'lib/swagger/api/component_schema.rb', line 8

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