Sha256: 2e80de24757466acc4d37f339298dfe5c1e335997781e3fd0b1de0e701434982

Contents?: true

Size: 609 Bytes

Versions: 5

Compression:

Stored size: 609 Bytes

Contents

# frozen_string_literal: true

module Telnyx
  class DialogflowConnection < APIResource
    extend Telnyx::APIOperations::Create
    include Telnyx::APIOperations::Delete
    include Telnyx::APIOperations::Save

    OBJECT_NAME = "dialogflow_connection".freeze
    def self.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[:connection_id]}", params, opts)
      Util.convert_to_telnyx_object(resp.data, opts)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
telnyx-3.0.5 lib/telnyx/dialogflow_connection.rb
telnyx-3.0.4 lib/telnyx/dialogflow_connection.rb
telnyx-3.0.3 lib/telnyx/dialogflow_connection.rb
telnyx-3.0.2 lib/telnyx/dialogflow_connection.rb
telnyx-3.0.0 lib/telnyx/dialogflow_connection.rb