Sha256: 4e017398e0b45678976f743851f2e16b337b54068d3eb1c37ab173075995fc07

Contents?: true

Size: 564 Bytes

Versions: 7

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

module Telnyx
  class Conferences < APIResource
    extend APIOperations::List
    extend APIOperations::Create
    extend APIOperations::NestedResource

    ACTIONS = %w[join mute unmute hold unhold].freeze

    ACTIONS.each do |action|
      nested_resource_class_methods action,
                                    path: ["actions", action],
                                    operations: [:create],
                                    instance_methods: { create: action }
    end
    OBJECT_NAME = "conference".freeze
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
telnyx-0.0.8 lib/telnyx/conferences.rb
telnyx-0.0.7 lib/telnyx/conferences.rb
telnyx-0.0.6 lib/telnyx/conferences.rb
telnyx-0.0.5 lib/telnyx/conferences.rb
telnyx-0.0.4 lib/telnyx/conferences.rb
telnyx-0.0.3 lib/telnyx/conferences.rb
telnyx-0.0.2 lib/telnyx/conferences.rb