Sha256: a8d9648047cae5fdf666ab13a0510b10e6afae513b4cfaf47b497c8e840d0162
Contents?: true
Size: 873 Bytes
Versions: 3
Compression:
Stored size: 873 Bytes
Contents
# frozen_string_literal: true module Telnyx class MessagingHostedNumberOrder < APIResource extend Telnyx::APIOperations::List extend Telnyx::APIOperations::Create include Telnyx::APIOperations::Delete include Telnyx::APIOperations::Save extend APIOperations::NestedResource ACTIONS = %w[file_upload].freeze ACTIONS.each do |action| nested_resource_class_methods action, path: %W[action #{action}], operations: [:create], instance_methods: { create: action } end OBJECT_NAME = "messaging_hosted_number_order".freeze def upload_file(params = {}, opts = {}) resp, opts = request(:post, "#{resource_url}/actions/file_upload", params, opts) Util.convert_to_telnyx_object(resp.data, opts) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
telnyx-3.0.5 | lib/telnyx/messaging_hosted_number_order.rb |
telnyx-3.0.4 | lib/telnyx/messaging_hosted_number_order.rb |
telnyx-3.0.3 | lib/telnyx/messaging_hosted_number_order.rb |