Class: Aws::Stubbing::DataApplicator Private
- Inherits:
-
Object
- Object
- Aws::Stubbing::DataApplicator
- Includes:
- Seahorse::Model::Shapes
- Defined in:
- lib/aws-sdk-core/stubbing/data_applicator.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
- #apply_data(data, stub) ⇒ Object private
-
#initialize(rules) ⇒ DataApplicator
constructor
private
A new instance of DataApplicator.
Constructor Details
#initialize(rules) ⇒ DataApplicator
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 DataApplicator.
8 9 10 |
# File 'lib/aws-sdk-core/stubbing/data_applicator.rb', line 8 def initialize(rules) @rules = rules end |
Instance Method Details
#apply_data(data, stub) ⇒ 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.
14 15 16 |
# File 'lib/aws-sdk-core/stubbing/data_applicator.rb', line 14 def apply_data(data, stub) apply_data_to_struct(@rules, data, stub) end |