Sha256: fd8b7579670094e59eedb8489f623147a81defad9a7a765fd2d43a53e9111785

Contents?: true

Size: 500 Bytes

Versions: 3

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

module Lokalise
  module Resources
    class CustomTranslationStatus < Base
      ID_KEY = 'status'
      supports :update, :destroy

      class << self
        def colors(client, path, *_args)
          get(path, client)['content']['colors']
        end

        def endpoint(project_id, status_id = nil)
          path_from projects: project_id,
                    custom_translation_statuses: status_id
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-lokalise-api-2.10.0 lib/ruby-lokalise-api/resources/custom_translation_status.rb
ruby-lokalise-api-2.9.0.1 lib/ruby-lokalise-api/resources/custom_translation_status.rb
ruby-lokalise-api-2.9.0 lib/ruby-lokalise-api/resources/custom_translation_status.rb