Class: Swagger::DSL::Parameters

Inherits:
Array
  • Object
show all
Defined in:
lib/swagger/dsl/parameters.rb

Instance Method Summary collapse

Constructor Details

#initialize(format: :json, &block) ⇒ Parameters

Returns a new instance of Parameters.



6
7
8
9
# File 'lib/swagger/dsl/parameters.rb', line 6

def initialize(format: :json, &block)
  @format = format
  instance_eval(&block)
end