Class: Gapic::GenericLRO::BaseOperation

Inherits:
Object
  • Object
show all
Defined in:
lib/gapic/generic_lro/base_operation.rb

Overview

A base class for the wrappers over the long-running operations.

Direct Known Subclasses

Operation

Instance Attribute Summary collapse

Instance Attribute Details

#operationObject

Returns The wrapped operation object.

Returns:

  • (Object)

    The wrapped operation object.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/gapic/generic_lro/base_operation.rb', line 23

class BaseOperation
  attr_reader :operation

  ##
  # @private
  # @param operation [Object] The operation object to be wrapped
  def initialize operation
    @operation = operation
  end

  protected

  attr_writer :operation
end