Sha256: a7ce5eced6fa701e6565244f36de29e2b092bddf0f5611f2dc2be9229b90ecf7

Contents?: true

Size: 539 Bytes

Versions: 5

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true

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

    nested_resource_class_methods "read",
                                  path: "read",
                                  operations: [:update],
                                  instance_methods: { update: "read" }

    def read(opts = nil)
      self.class.update_read(id, nil, opts)
    end

    OBJECT_NAME = "comment".freeze
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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