Class: Aws::Stubbing::StubData Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/stubbing/stub_data.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

Constructor Details

#initialize(operation) ⇒ StubData

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 StubData.



8
9
10
11
# File 'lib/aws-sdk-core/stubbing/stub_data.rb', line 8

def initialize(operation)
  @rules = operation.output
  @pager = operation[:pager]
end

Instance Method Details

#stub(data = {}) ⇒ 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.



13
14
15
16
17
18
19
# File 'lib/aws-sdk-core/stubbing/stub_data.rb', line 13

def stub(data = {})
  stub = EmptyStub.new(@rules).stub
  remove_paging_tokens(stub)
  remove_checksums(stub)
  apply_data(data, stub)
  stub
end