Sha256: cfebe5a4aa39c1fbd51b0af63165c3d4a615f35cea7369dce23340d02778f4fa
Contents?: true
Size: 595 Bytes
Versions: 4
Compression:
Stored size: 595 Bytes
Contents
# frozen_string_literal: true module Telnyx class Enum < APIResource extend APIOperations::List extend APIOperations::NestedResource def self.endpoint(params = {}, opts = {}) resp, opts = request(:get, "/v2/enum/#{params[:endpoint]}", params, opts) Util.convert_to_telnyx_object(resp.data, opts) end def self.resource_url(inner_id = nil) path_prefix = "/10dlc" object_path = "enum" inner_id.nil? ? "#{path_prefix}/#{object_path}" : "#{path_prefix}/#{object_path}/#{CGI.escape(inner_id)}" end OBJECT_NAME = "enum".freeze end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
telnyx-3.0.5 | lib/telnyx/enum.rb |
telnyx-3.0.4 | lib/telnyx/enum.rb |
telnyx-3.0.3 | lib/telnyx/enum.rb |
telnyx-3.0.2 | lib/telnyx/enum.rb |