Class: Sink::Resources::DecoratorTests::SkipThisResource
- Inherits:
-
Object
- Object
- Sink::Resources::DecoratorTests::SkipThisResource
- Defined in:
- lib/sink/resources/decorator_tests/skip_this_resource.rb
Instance Method Summary collapse
-
#i_never_appear(opts = {}) ⇒ Sink::Models::SkipThisResourceINeverAppearResponse
Nested method that should never render because its parent resource is skipped.
-
#initialize(client:) ⇒ SkipThisResource
constructor
A new instance of SkipThisResource.
Constructor Details
#initialize(client:) ⇒ SkipThisResource
Returns a new instance of SkipThisResource.
8 9 10 |
# File 'lib/sink/resources/decorator_tests/skip_this_resource.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#i_never_appear(opts = {}) ⇒ Sink::Models::SkipThisResourceINeverAppearResponse
Nested method that should never render because its parent resource is skipped.
17 18 19 20 21 22 23 24 |
# File 'lib/sink/resources/decorator_tests/skip_this_resource.rb', line 17 def i_never_appear(opts = {}) req = { method: :get, path: "/decorator_tests/nested/i/never/appear", model: Sink::Models::SkipThisResourceINeverAppearResponse } @client.request(req, opts) end |