Class: Aws::Api::Documenter Private
- Inherits:
-
Object
- Object
- Aws::Api::Documenter
- Defined in:
- lib/aws-sdk-core/api/documenter.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: Tabulator
Instance Method Summary collapse
- #apply ⇒ Object private
-
#initialize(svc_module, docs_path) ⇒ Documenter
constructor
private
A new instance of Documenter.
Constructor Details
#initialize(svc_module, docs_path) ⇒ Documenter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Documenter.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/aws-sdk-core/api/documenter.rb', line 8 def initialize(svc_module, docs_path) @svc_module = svc_module @svc_name = svc_module.name.split('::').last @client_class = svc_module.const_get(:Client) Aws::Api::Docstrings.apply(@client_class, docs_path) @api = @client_class.api @full_name = @api.('serviceFullName') @error_names = @api.operations.map {|_,o| o.errors.map(&:name) } @error_names = @error_names.flatten.uniq.sort @namespace = YARD::Registry['Aws'] end |
Instance Method Details
#apply ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 23 24 |
# File 'lib/aws-sdk-core/api/documenter.rb', line 20 def apply document_service document_client document_errors end |