Sha256: 2aadadd916082bcf1689faf407312961a18c1e346dbbd23a58f2df89946a61af

Contents?: true

Size: 538 Bytes

Versions: 3

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

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

      def empty
        self.class.empty @client, "#{@path}/empty"
      end

      class << self
        def empty(client, path, *_args)
          put(path, client)['content']
        end

        def endpoint(project_id = nil, action = nil)
          path_from projects: [project_id, action]
        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.rb
ruby-lokalise-api-4.5.1 lib/ruby-lokalise-api/resources/project.rb
ruby-lokalise-api-4.5.0 lib/ruby-lokalise-api/resources/project.rb