module Supercast::Operations::Create
Public Instance Methods
create(params = {}, opts = {})
click to toggle source
Creates an API resource.
Attributes¶ ↑
-
params
- A hash of parameters to pass to the API -
opts
- A Hash of additional options (separate from the params / object values) to be added to the request.
# File lib/supercast/operations/create.rb, line 13 def create(params = {}, opts = {}) resp, opts = request(:post, resource_url, Hash[object_name => params], opts) Util.convert_to_supercast_object(resp.data, opts) end