Class: Sink::Resources::Parent::Child

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/parent/child.rb

Overview

Some children can be very large For example, the children of Godzilla

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Child

Returns a new instance of Child.

Parameters:



10
11
12
# File 'lib/sink/resources/parent/child.rb', line 10

def initialize(client:)
  @client = client
end

Instance Method Details

#inlined_response(opts = {}) ⇒ Sink::Models::ChildInlinedResponseResponse

Method with inlined response model.

Parameters:

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

    Options to specify HTTP behaviour for this request.

Returns:



19
20
21
22
23
24
25
26
# File 'lib/sink/resources/parent/child.rb', line 19

def inlined_response(opts = {})
  req = {
    method: :get,
    path: "/inlined_response",
    model: Sink::Models::ChildInlinedResponseResponse
  }
  @client.request(req, opts)
end