Class: Sink::Resources::Names::ReservedNames::Methods
- Inherits:
-
Object
- Object
- Sink::Resources::Names::ReservedNames::Methods
- Defined in:
- lib/sink/resources/names/reserved_names/methods.rb
Instance Method Summary collapse
-
#export(class_, params = {}, opts = {}) ⇒ Sink::Models::Export
Test reserved word in method name.
-
#initialize(client:) ⇒ Methods
constructor
A new instance of Methods.
Constructor Details
#initialize(client:) ⇒ Methods
Returns a new instance of Methods.
9 10 11 |
# File 'lib/sink/resources/names/reserved_names/methods.rb', line 9 def initialize(client:) @client = client end |
Instance Method Details
#export(class_, params = {}, opts = {}) ⇒ Sink::Models::Export
Test reserved word in method name
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/sink/resources/names/reserved_names/methods.rb', line 24 def export(class_, params = {}, opts = {}) query_params = [:let] req = { method: :post, path: "/names/reserved_names/methods/export/#{class_}", query: params.slice(*query_params), body: params.except(*query_params), headers: {"Content-Type" => "application/json"}, model: Sink::Models::Export } @client.request(req, opts) end |