Class: Sink::Resources::SharedQueryParams
- Inherits:
-
Object
- Object
- Sink::Resources::SharedQueryParams
- Defined in:
- lib/sink/resources/shared_query_params.rb
Instance Method Summary collapse
- #del(params = {}, opts = {}) ⇒ String
-
#initialize(client:) ⇒ SharedQueryParams
constructor
A new instance of SharedQueryParams.
- #retrieve(params = {}, opts = {}) ⇒ String
Constructor Details
#initialize(client:) ⇒ SharedQueryParams
Returns a new instance of SharedQueryParams.
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
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
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 |