Sha256: d7e53546eb0c40b76e3b0ff6f3dd093301fb47c0d5310af26aac5c29a80fc48e

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

module Telnyx
  class MessagingHostedNumber < APIResource
    include Telnyx::APIOperations::Delete

    def self.resource_url(inner_id = nil)
      path_prefix = "/v2"
      object_path = "messaging_hosted_numbers"

      inner_id.nil? ? "#{path_prefix}/#{object_path}" : "#{path_prefix}/#{object_path}/#{CGI.escape(inner_id)}"
    end

    OBJECT_NAME = "messaging_hosted_number".freeze
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
telnyx-3.0.5 lib/telnyx/messaging_hosted_number.rb
telnyx-3.0.4 lib/telnyx/messaging_hosted_number.rb
telnyx-3.0.3 lib/telnyx/messaging_hosted_number.rb