Sha256: 6c56d8f40d604688bdc04747c68436dbe097d79362c13ea0284cfad688e6d852

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

module Lokalise
  module Resources
    class ProjectLanguage < Base
      DATA_KEY = 'Language'
      ID_KEY = 'lang'
      supports :update, :destroy

      class << self
        def endpoint(project_id, language_id = nil)
          path_from projects: project_id,
                    languages: language_id
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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