Sha256: 097f0e18fc6cc60486232a03dcb75f3b512adcdc45b5fc38a0fdc3653c8ce39f
Contents?: true
Size: 911 Bytes
Versions: 5
Compression:
Stored size: 911 Bytes
Contents
# frozen_string_literal: true module Telnyx class Fax < APIResource extend Telnyx::APIOperations::List extend Telnyx::APIOperations::Create include Telnyx::APIOperations::Delete include Telnyx::APIOperations::Save extend APIOperations::NestedResource ACTIONS = %w[refresh cancel].freeze ACTIONS.each do |action| nested_resource_class_methods action, path: %W[actions #{action}], operations: [:create], instance_methods: { create: action } end OBJECT_NAME = "fax".freeze RESOURCE_PATH = "faxes".freeze def self.retrieve(id, opts = {}) id, retrieve_params = Util.normalize_id(id) resp, opts = request(:get, "#{resource_url}/#{CGI.escape(id)}", retrieve_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/fax.rb |
telnyx-3.0.4 | lib/telnyx/fax.rb |
telnyx-3.0.3 | lib/telnyx/fax.rb |
telnyx-3.0.2 | lib/telnyx/fax.rb |
telnyx-3.0.0 | lib/telnyx/fax.rb |