Sha256: a47e9516f23e8b332643c10a51f8d7163fc47b05cb4b7a0f894b089576f353a6

Contents?: true

Size: 545 Bytes

Versions: 7

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

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