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
-
#base_url_value ⇒ String
This must be overridden by using ‘base_url’ method within class definition.
-
#parent_url ⇒ String
This returns the base url that can be accessed by a subclass.
-
#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.
-
#rest_client_headers ⇒ Hash
Headers used in RestClient.
Instance Method Details
#base_url_value ⇒ String
This must be overridden by using ‘base_url’ method within class definition
6 7 8 |
# File 'lib/soaspec/exchange_handlers/rest_parameters_defaults.rb', line 6 def base_url_value nil end |
#parent_url ⇒ String
This returns the base url that can be accessed by a subclass. It is set by the ‘base_url’ method
24 25 26 |
# File 'lib/soaspec/exchange_handlers/rest_parameters_defaults.rb', line 24 def parent_url raise 'This needs to be set through base_url method' 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
36 37 38 |
# File 'lib/soaspec/exchange_handlers/rest_parameters_defaults.rb', line 36 def pascal_keys? false end |
#rest_client_headers ⇒ Hash
Returns Headers used in RestClient.
29 30 31 |
# File 'lib/soaspec/exchange_handlers/rest_parameters_defaults.rb', line 29 def rest_client_headers {} end |