Sha256: 7b31da1625ff59221b96131b74911df1a0795dcfd3317e4793b394172061e52d

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

module Lokalise
  module Resources
    class ProjectLanguage < Base
      DATA_KEY = 'Language'
      ID_KEY = 'lang_id'
      supports :update, :destroy, [:reload_data, '', :find]

      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

3 entries across 3 versions & 1 rubygems

Version Path
ruby-lokalise-api-5.0.0 lib/ruby-lokalise-api/resources/project_language.rb
ruby-lokalise-api-4.5.1 lib/ruby-lokalise-api/resources/project_language.rb
ruby-lokalise-api-4.5.0 lib/ruby-lokalise-api/resources/project_language.rb