Class: Sink::Resources::DecoratorTests::KeepThisResource

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/decorator_tests/keep_this_resource.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ KeepThisResource

Returns a new instance of KeepThisResource.

Parameters:



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.

Parameters:

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



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