Class: Aws::ClientStubs::Stub
- Inherits:
-
Object
- Object
- Aws::ClientStubs::Stub
- Defined in:
- lib/aws-sdk-core/client_stubs.rb
Instance Method Summary collapse
- #format(data = {}) ⇒ Object
-
#initialize(output_shape) ⇒ Stub
constructor
A new instance of Stub.
Constructor Details
#initialize(output_shape) ⇒ Stub
Returns a new instance of Stub.
135 136 137 |
# File 'lib/aws-sdk-core/client_stubs.rb', line 135 def initialize(output_shape) @shape = output_shape end |
Instance Method Details
#format(data = {}) ⇒ Object
141 142 143 144 145 146 147 148 |
# File 'lib/aws-sdk-core/client_stubs.rb', line 141 def format(data = {}) if @shape.nil? empty_stub(data) else validate_data(data) stub(@shape, data) end end |