Sha256: c797fe14613940a9122c604f936381578069e74449efbee00bd611051b8688fb

Contents?: true

Size: 425 Bytes

Versions: 7

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module Lokalise
  module Resources
    class ProjectLanguage < Base
      DATA_KEY = 'Language'
      ID_KEY = 'lang'
      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

7 entries across 7 versions & 1 rubygems

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