Class: Dryer::Clients::GeneratedClients::Requests::Validate
- Inherits:
-
Services::ResultService
- Object
- Services::ResultService
- Dryer::Clients::GeneratedClients::Requests::Validate
- Defined in:
- lib/dryer/clients/generated_clients/requests/validate.rb
Instance Method Summary collapse
- #call {|Paths::Variables::Validate.call(path, path_variables)| ... } ⇒ Object
-
#initialize(path_variables:, path:, headers:, headers_contract:, body:, request_contract:, url_parameters:, url_parameters_contract:) ⇒ Validate
constructor
A new instance of Validate.
Constructor Details
#initialize(path_variables:, path:, headers:, headers_contract:, body:, request_contract:, url_parameters:, url_parameters_contract:) ⇒ Validate
Returns a new instance of Validate.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/dryer/clients/generated_clients/requests/validate.rb', line 11 def initialize( path_variables:, path:, headers:, headers_contract:, body:, request_contract:, url_parameters:, url_parameters_contract: ) @path = path @path_variables = path_variables @headers = headers @headers_contract = headers_contract @body = body @request_contract = request_contract @url_parameters = url_parameters @url_parameters_contract = url_parameters_contract end |
Instance Method Details
#call {|Paths::Variables::Validate.call(path, path_variables)| ... } ⇒ Object
31 32 33 34 35 36 |
# File 'lib/dryer/clients/generated_clients/requests/validate.rb', line 31 def call yield Paths::Variables::Validate.call(path, path_variables) yield validate(headers, headers_contract) yield validate(body, request_contract) yield validate(url_parameters, url_parameters_contract) end |