Sha256: 85150126346d2a926cbd927374009a571a7d64c6e8feba01e269b7216c050042

Contents?: true

Size: 435 Bytes

Versions: 7

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

module RubyLokaliseApi
  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

7 entries across 7 versions & 1 rubygems

Version Path
ruby-lokalise-api-7.2.0 lib/ruby_lokalise_api/resources/project_language.rb
ruby-lokalise-api-7.1.1 lib/ruby_lokalise_api/resources/project_language.rb
ruby-lokalise-api-7.1.0 lib/ruby_lokalise_api/resources/project_language.rb
ruby-lokalise-api-7.0.0 lib/ruby_lokalise_api/resources/project_language.rb
ruby-lokalise-api-6.2.0 lib/ruby_lokalise_api/resources/project_language.rb
ruby-lokalise-api-6.1.0 lib/ruby_lokalise_api/resources/project_language.rb
ruby-lokalise-api-6.0.0 lib/ruby_lokalise_api/resources/project_language.rb