Sha256: e88a5fc9b63b99130dd6a02ddeacab4c2505c53fd1ebf35daffa51928e58979a

Contents?: true

Size: 593 Bytes

Versions: 5

Compression:

Stored size: 593 Bytes

Contents

# frozen_string_literal: true

module Telnyx
  class Media < APIResource
    extend APIOperations::List
    extend APIOperations::Create
    extend APIOperations::NestedResource
    include APIOperations::Delete
    include APIOperations::Save

    ACTIONS = %w[download].freeze
    ACTIONS.each do |action|
      nested_resource_class_methods action,
                                    path: %W[#{action}],
                                    operations: [:create],
                                    instance_methods: { create: action }
    end

    OBJECT_NAME = "media".freeze
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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