Class: Aws::Api::Docs::OperationDocumenter Private
- Inherits:
- 
      Object
      
        - Object
- Aws::Api::Docs::OperationDocumenter
 
- Includes:
- Utils, Seahorse::Model
- Defined in:
- lib/aws-sdk-core/api/docs/operation_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.
Instance Method Summary collapse
- #document(method_name, operation) ⇒ Object private
- 
  
    
      #initialize(service_name, namespace)  ⇒ OperationDocumenter 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    A new instance of OperationDocumenter. 
Methods included from Utils
#compute_recursive_shapes, #document_struct_member, #input_type, #operation_input_ref, #output_type, #struct_member_docstring, #summary, #tag
Constructor Details
#initialize(service_name, namespace) ⇒ OperationDocumenter
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 OperationDocumenter.
| 9 10 11 12 13 | # File 'lib/aws-sdk-core/api/docs/operation_documenter.rb', line 9 def initialize(service_name, namespace) @service_name = service_name @namespace = namespace @optname = 'options' end | 
Instance Method Details
#document(method_name, operation) ⇒ 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.
| 17 18 19 20 21 22 23 24 25 26 | # File 'lib/aws-sdk-core/api/docs/operation_documenter.rb', line 17 def document(method_name, operation) m = YARD::CodeObjects::MethodObject.new(@namespace, method_name) m.group = 'API Operations' m.scope = :instance m.parameters << [@optname, '{}'] m.docstring = operation.documentation (method_name, operation).each do |tag| m.add_tag(tag) end end |