Sha256: c0b1eb6ca2d3acae27a851a8be4f1ec9a2bc3fc9d65057761c14a04dc9b62c07

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

module Provet
  class User < Provet::Base
    def really_destroy!(_id)
      raise MethodNotAllowedError
    end

    private

    def soft_deletable?
      true
    end

    def endpoint_name
      'user'
    end

    def archive_payload
      { is_active: 0 }.to_json
    end

    def restore_payload
      { is_active: 1 }.to_json
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
provet-client-0.1.0 lib/provet/user.rb