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

Class: Aws::Resources::Operations::ResourceOperation

Inherits:
Operation
  • Object
show all
Defined in:
aws-sdk-resources/lib/aws-sdk-resources/operations.rb

Direct Known Subclasses

HasManyOperation

Instance Attribute Summary collapse

Attributes inherited from Operation

#request

Attributes inherited from Base

#source

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ResourceOperation

Returns a new instance of ResourceOperation

Parameters:

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

    a customizable set of options

Options Hash (options):



76
77
78
79
# File 'aws-sdk-resources/lib/aws-sdk-resources/operations.rb', line 76

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

Instance Attribute Details

#builderBuilder (readonly)

Returns:



82
83
84
# File 'aws-sdk-resources/lib/aws-sdk-resources/operations.rb', line 82

def builder
  @builder
end

Instance Method Details

#call(options) ⇒ Resource+

Returns:



86
87
88
# File 'aws-sdk-resources/lib/aws-sdk-resources/operations.rb', line 86

def call(options)
  @builder.build(options.merge(response:super))
end