Sha256: 866639d2fe4bffdb0484ebd6a377406790ec192962d53863410d7452b04729c4

Contents?: true

Size: 625 Bytes

Versions: 5

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

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

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

    OBJECT_NAME = "portout".freeze
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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