Sha256: 67155128ce40ecddaa15e027e575674f0a24421fab19cce38f4b143a55fcf97f

Contents?: true

Size: 451 Bytes

Versions: 5

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

module Telnyx
  class AvailablePhoneNumber < APIResource
    extend Telnyx::APIOperations::List
    extend Telnyx::APIOperations::ParamWrapper
    wrap "list", "filter"

    def self.blocks(params = {}, opts = {})
      resp, opts = request(:get, "/v2/available_phone_number_blocks", params, opts)
      Util.convert_to_telnyx_object(resp.data, opts)
    end

    OBJECT_NAME = "available_phone_number".freeze
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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