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

Inherits:
Base
  • Object
show all
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

LoadOperation, ResourceOperation

Instance Attribute Summary collapse

Attributes inherited from Base

#source

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Operation

Returns a new instance of Operation

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):



30
31
32
33
# File 'aws-sdk-resources/lib/aws-sdk-resources/operations.rb', line 30

def initialize(options = {})
  @request = option(:request, options)
  super
end

Instance Attribute Details

#requestRequest (readonly)

Returns:



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(options)
  @request.call(options)
end