Module: ApiStruct::Extensions::ApiClient

Includes:
Concerns::Underscore
Included in:
ApiStruct::Entity
Defined in:
lib/api_struct/extensions/api_client.rb

Constant Summary collapse

REJECTED_METHODS =
%i[api_root default_path headers]

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concerns::Underscore

#underscore

Instance Attribute Details

#clientsObject (readonly)

Returns the value of attribute clients.



8
9
10
# File 'lib/api_struct/extensions/api_client.rb', line 8

def clients
  @clients
end

Instance Method Details

#client_service(*services, **options) ⇒ Object



10
11
12
13
# File 'lib/api_struct/extensions/api_client.rb', line 10

def client_service(*services, **options)
  @clients ||= {}
  services.each { |service| register_service(service, options) }
end