Sha256: 68ab5535ef4a0384622a265aa00fa497e6570c9e1632299aa18ff42a7111f1ab

Contents?: true

Size: 620 Bytes

Versions: 5

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

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

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

    OBJECT_NAME = "address".freeze
    RESOURCE_PATH = "addresses".freeze
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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