Class: Aws::Resources::Operations::Base

Inherits:
Object
  • Object
show all
Includes:
Aws::Resources::Options
Defined in:
lib/aws-sdk-resources/operations.rb

Overview

Base class for operations. An operation is any object that responds to ‘#call` receiving a hash of options including:

  • ‘:resource` - The resource object the operation is invoked against.

  • ‘:args` - An array of arguments given by the caller

  • ‘:block` - An optional block argument

Direct Known Subclasses

HasOperation, Operation, WaiterOperation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



16
17
18
# File 'lib/aws-sdk-resources/operations.rb', line 16

def initialize(options = {})
  @source = options[:source]
end

Instance Attribute Details

#sourceSource? (readonly)

Returns:



21
22
23
# File 'lib/aws-sdk-resources/operations.rb', line 21

def source
  @source
end