Class: Aws::Stubbing::EmptyStub Private
- Inherits:
-
Object
- Object
- Aws::Stubbing::EmptyStub
- Includes:
- Seahorse::Model::Shapes
- Defined in:
- lib/aws-sdk-core/stubbing/empty_stub.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.
Instance Method Summary collapse
-
#initialize(rules) ⇒ EmptyStub
constructor
private
A new instance of EmptyStub.
- #stub ⇒ Structure private
Constructor Details
#initialize(rules) ⇒ EmptyStub
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 EmptyStub.
10 11 12 |
# File 'lib/aws-sdk-core/stubbing/empty_stub.rb', line 10 def initialize(rules) @rules = rules end |
Instance Method Details
#stub ⇒ Structure
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.
15 16 17 18 19 20 21 |
# File 'lib/aws-sdk-core/stubbing/empty_stub.rb', line 15 def stub if @rules stub_ref(@rules) else EmptyStructure.new end end |