You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Resources::Operations::Operation
- Defined in:
- aws-sdk-resources/lib/aws-sdk-resources/operations.rb
Overview
Makes an API request using the resource client, returning the client response. Most operation classes extend this basic operation.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#request ⇒ Request
readonly
Attributes inherited from Base
Instance Method Summary collapse
-
#call(options) ⇒ Seahorse::Client::Response
-
#initialize(options = {}) ⇒ Operation
constructor
A new instance of Operation.
Constructor Details
#initialize(options = {}) ⇒ Operation
Returns a new instance of Operation.
30 31 32 33 |
# File 'aws-sdk-resources/lib/aws-sdk-resources/operations.rb', line 30 def initialize( = {}) @request = option(:request, ) super end |
Instance Attribute Details
#request ⇒ Request (readonly)
36 37 38 |
# File 'aws-sdk-resources/lib/aws-sdk-resources/operations.rb', line 36 def request @request end |
Instance Method Details
#call(options) ⇒ Seahorse::Client::Response
40 41 42 |
# File 'aws-sdk-resources/lib/aws-sdk-resources/operations.rb', line 40 def call() @request.call() end |