Class: Aws::Resources::Operations::DeprecatedOperation Private
- Inherits:
-
Object
- Object
- Aws::Resources::Operations::DeprecatedOperation
- Defined in:
- lib/aws-sdk-resources/operations.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .define(options = {}) ⇒ Object private
Instance Method Summary collapse
- #call(*args) ⇒ Object private
-
#initialize(options = {}) ⇒ DeprecatedOperation
constructor
private
A new instance of DeprecatedOperation.
Constructor Details
#initialize(options = {}) ⇒ DeprecatedOperation
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DeprecatedOperation.
244 245 246 247 248 249 250 |
# File 'lib/aws-sdk-resources/operations.rb', line 244 def initialize( = {}) @name = [:name] @deprecated_name = [:deprecated_name] @resource_class = [:resource_class] @operation = @resource_class.batch_operation(@name) @warned = false end |
Class Method Details
.define(options = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
270 271 272 273 274 |
# File 'lib/aws-sdk-resources/operations.rb', line 270 def define( = {}) klass = [:resource_class] deprecated_name = [:deprecated_name] klass.add_batch_operation(deprecated_name, new()) end |
Instance Method Details
#call(*args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
252 253 254 255 256 257 258 |
# File 'lib/aws-sdk-resources/operations.rb', line 252 def call(*args) unless @warned @warned = true warn(deprecation_warning) end @operation.call(*args) end |