Class: Sink::Resources::SharedQueryParams

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ SharedQueryParams

Returns a new instance of SharedQueryParams.

Parameters:



7
8
9
# File 'lib/sink/resources/shared_query_params.rb', line 7

def initialize(client:)
  @client = client
end

Instance Method Details

#del(params = {}, opts = {}) ⇒ String

Parameters:

  • params (Hash{Symbol => Object}) (defaults to: {})

    Attributes to send in this request. @option params [String, nil] :get1 @option params [String, nil] :shared1 @option params [String, nil] :shared2

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

    Options to specify HTTP behaviour for this request.

Returns:

  • (String)


37
38
39
40
41
42
43
44
45
# File 'lib/sink/resources/shared_query_params.rb', line 37

def del(params = {}, opts = {})
  req = {
    method: :delete,
    path: "/shared-query-params",
    query: params,
    model: String
  }
  @client.request(req, opts)
end

#retrieve(params = {}, opts = {}) ⇒ String

Parameters:

  • params (Hash{Symbol => Object}) (defaults to: {})

    Attributes to send in this request. @option params [String, nil] :get1 @option params [String, nil] :shared1 @option params [String, nil] :shared2

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

    Options to specify HTTP behaviour for this request.

Returns:

  • (String)


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

def retrieve(params = {}, opts = {})
  req = {
    method: :get,
    path: "/shared-query-params",
    query: params,
    model: String
  }
  @client.request(req, opts)
end