Method: ApiSpec::Parameters#initialize
- Defined in:
- lib/api_spec/parameters.rb
#initialize(method, path, table = nil) ⇒ Parameters
Returns a new instance of Parameters.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/api_spec/parameters.rb', line 5 def initialize(method, path, table = nil) @method = method @path = path @path_params = {} @query = {} @form = {} @json = {} @cookie = {} @header = {} load_table(table) if table end |