Sha256: 4e96e0a2bd5164faccfa10c694addeb828b2b429f9d75034c00135ee076e43b3

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true

module Telnyx
  module APIOperations
    module Delete
      def delete(params = {}, opts = {})
        opts = Util.normalize_opts(opts)
        resp, opts = request(:delete, resource_url, params, opts)
        initialize_from(resp.data[:data], opts) if resp.data[:data].present? # at deletion resp[:data] not present for some apis
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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