Sha256: 5e6c22ac56595585fe5132f3f26fd3b5572903bc93700d4e543d1722cac27dcc

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

module Lokalise
  module Resources
    class CustomTranslationStatus < Base
      ID_KEY = 'status_id'
      supports :update, :destroy, [:reload_data, '', :find]

      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-5.0.0 lib/ruby-lokalise-api/resources/custom_translation_status.rb
ruby-lokalise-api-4.5.1 lib/ruby-lokalise-api/resources/custom_translation_status.rb
ruby-lokalise-api-4.5.0 lib/ruby-lokalise-api/resources/custom_translation_status.rb