Class: Sink::Resources::DecoratorTests::KeepThisResource
- Inherits:
-
Object
- Object
- Sink::Resources::DecoratorTests::KeepThisResource
- Defined in:
- lib/sink/resources/decorator_tests/keep_this_resource.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ KeepThisResource
constructor
A new instance of KeepThisResource.
-
#keep_this_method(opts = {}) ⇒ Sink::Models::KeepThisResourceKeepThisMethodResponse
Nested method that should render because it is not skipped nor are its ancestors.
Constructor Details
#initialize(client:) ⇒ KeepThisResource
Returns a new instance of KeepThisResource.
8 9 10 |
# File 'lib/sink/resources/decorator_tests/keep_this_resource.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#keep_this_method(opts = {}) ⇒ Sink::Models::KeepThisResourceKeepThisMethodResponse
Nested method that should render because it is not skipped nor are its
ancestors.
18 19 20 21 22 23 24 25 |
# File 'lib/sink/resources/decorator_tests/keep_this_resource.rb', line 18 def keep_this_method(opts = {}) req = { method: :get, path: "/decorator_tests/nested/keep/this/method", model: Sink::Models::KeepThisResourceKeepThisMethodResponse } @client.request(req, opts) end |