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
-
#clients ⇒ Object
readonly
Returns the value of attribute clients.
Instance Method Summary collapse
Methods included from Concerns::Underscore
Instance Attribute Details
#clients ⇒ Object (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, **) @clients ||= {} services.each { |service| register_service(service, ) } end |