Class: GraphqlConnector::BaseServerType
- Inherits:
-
Object
- Object
- GraphqlConnector::BaseServerType
- Defined in:
- lib/graphql_connector/base_server_type.rb
Overview
Class to wrap http_client calls under a specific namespaced class
Class Method Summary collapse
Class Method Details
.build(name, uri, headers = {}, connector = {}, httparty_adapter_options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/graphql_connector/base_server_type.rb', line 8 def build(name, uri, headers = {}, connector = {}, = {}) verify_new_client_type_for!(name) base_class = class_with(uri, headers, connector, ) base_object = GraphqlConnector.const_set(name, base_class) inject_http_client_delegations(base_object) create_service_class_module(base_object) base_object end |