AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Resources::Documenter::DataOperationDocumenter

Inherits:
BaseOperationDocumenter show all
Defined in:
aws-sdk-resources/lib/aws-sdk-resources/documenter/data_operation_documenter.rb

Instance Attribute Summary

Attributes inherited from BaseOperationDocumenter

#api_request, #api_request_name, #api_request_params, #builder, #called_operation, #operation_name, #resource_class, #resource_class_name, #source, #target_resource_class, #target_resource_class_name, #yard_class

Instance Method Summary collapse

Methods inherited from BaseOperationDocumenter

#initialize, #method_object

Constructor Details

This class inherits a constructor from Aws::Resources::Documenter::BaseOperationDocumenter

Instance Method Details

#plural?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'aws-sdk-resources/lib/aws-sdk-resources/documenter/data_operation_documenter.rb', line 18

def plural?
  !!@operation.path.match(/\[/)
end

#return_tagObject



14
15
16
# File 'aws-sdk-resources/lib/aws-sdk-resources/documenter/data_operation_documenter.rb', line 14

def return_tag
  tag("@return [#{return_type}]")
end

#return_typeObject



6
7
8
9
10
11
12
# File 'aws-sdk-resources/lib/aws-sdk-resources/documenter/data_operation_documenter.rb', line 6

def return_type
  if plural?
    "Array<#{path_type}>"
  else
    path_type
  end
end