Module: Soaspec::RestParametersDefaults

Included in:
RestHandler
Defined in:
lib/soaspec/exchange_handlers/rest_parameters_defaults.rb

Overview

Defaults for Soaspec RestParameters methods

Instance Method Summary collapse

Instance Method Details

#base_url_valueObject

Set through following method. Base URL in REST requests.



5
6
7
# File 'lib/soaspec/exchange_handlers/rest_parameters_defaults.rb', line 5

def base_url_value
  nil
end

#pascal_keys?Boolean

Whether to convert each key in the request to PascalCase It will also auto convert simple XPath, JSONPath where ‘//’ or ‘..’ not specified

Returns:

  • (Boolean)

    Whether to convert to PascalCase



17
18
19
# File 'lib/soaspec/exchange_handlers/rest_parameters_defaults.rb', line 17

def pascal_keys?
  false
end

#rest_client_headersObject

Headers used in RestClient



10
11
12
# File 'lib/soaspec/exchange_handlers/rest_parameters_defaults.rb', line 10

def rest_client_headers
  {}
end