Sha256: 3123a5800c00f6d3523a8349eb3038246b55a8c9bdc3bf2f4f30657c0eb97b2f

Contents?: true

Size: 633 Bytes

Versions: 5

Compression:

Stored size: 633 Bytes

Contents

# frozen_string_literal: true

module Telnyx
  class Network < APIResource
    include Telnyx::APIOperations::Save
    include Telnyx::APIOperations::Delete
    extend Telnyx::APIOperations::List
    extend Telnyx::APIOperations::Create
    extend APIOperations::NestedResource
    ACTIONS = %w[network_interfaces].freeze
    ACTIONS.each do |action|
      nested_resource_class_methods action,
                                    path: %W[#{action}],
                                    operations: [:list],
                                    instance_methods: { list: action }
    end
    OBJECT_NAME = "network".freeze
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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