Sha256: 8b4c2e1369a55f2bc9eecfc28f3bfcfe6e0e86b4176d44c6ad61484559e1d4a2

Contents?: true

Size: 424 Bytes

Versions: 8

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

module Telnyx
  module APIOperations
    module Create
      def create(params = {}, opts = {})
        if opts.respond_to? :fetch
          url = opts.fetch(:resource_url, nil)
          opts.delete :resource_url
        end
        url ||= resource_url
        resp, opts = request(:post, url, params, opts)
        Util.convert_to_telnyx_object(resp.data, opts)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
telnyx-3.0.5 lib/telnyx/api_operations/create.rb
telnyx-3.0.4 lib/telnyx/api_operations/create.rb
telnyx-3.0.3 lib/telnyx/api_operations/create.rb
telnyx-3.0.2 lib/telnyx/api_operations/create.rb
telnyx-3.0.0 lib/telnyx/api_operations/create.rb
telnyx-2.9.0 lib/telnyx/api_operations/create.rb
telnyx-2.8.0 lib/telnyx/api_operations/create.rb
telnyx-2.7.0 lib/telnyx/api_operations/create.rb