Sha256: 8e8a056333dfd9a5611c4f16fc046bbb7bbbd2df752b4818f7fa9d3432d7eae6

Contents?: true

Size: 453 Bytes

Versions: 8

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

module Lokalise
  module Resources
    class KeyComment < Base
      DATA_KEY = 'Comment'
      ID_KEY = 'comment'
      supports :destroy, [:reload_data, '', :find]

      class << self
        def endpoint(project_id, key_id, comment_id = nil)
          path_from projects: project_id,
                    keys: key_id,
                    comments: comment_id
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby-lokalise-api-4.4.0 lib/ruby-lokalise-api/resources/key_comment.rb
ruby-lokalise-api-4.3.1 lib/ruby-lokalise-api/resources/key_comment.rb
ruby-lokalise-api-4.3.0 lib/ruby-lokalise-api/resources/key_comment.rb
ruby-lokalise-api-4.2.0 lib/ruby-lokalise-api/resources/key_comment.rb
ruby-lokalise-api-4.1.0 lib/ruby-lokalise-api/resources/key_comment.rb
ruby-lokalise-api-4.0.0 lib/ruby-lokalise-api/resources/key_comment.rb
ruby-lokalise-api-3.1.0 lib/ruby-lokalise-api/resources/key_comment.rb
ruby-lokalise-api-3.0.0 lib/ruby-lokalise-api/resources/key_comment.rb