Class: Esse::Deprecations::RepositoryBackendDelegator

Inherits:
Object
  • Object
show all
Extended by:
Deprecate
Defined in:
lib/esse/deprecations/repository_backend_delegator.rb

Instance Method Summary collapse

Methods included from Deprecate

extended

Constructor Details

#initialize(namespace, repo) ⇒ RepositoryBackendDelegator

Returns a new instance of RepositoryBackendDelegator.



8
9
10
11
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 8

def initialize(namespace, repo)
  @namespace = namespace
  @repo = repo
end

Instance Method Details

#bulk(**kwargs) ⇒ Object



25
26
27
28
29
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 25

def bulk(**kwargs)
  warning("#{@repo}.#{@namespace}.bulk", "#{@repo.index}.bulk", 2023, 12)

  @repo.index.bulk(**kwargs)
end

#bulk!(**kwargs) ⇒ Object



31
32
33
34
35
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 31

def bulk!(**kwargs)
  warning("#{@repo}.#{@namespace}.bulk!", "#{@repo.index}.bulk", 2023, 12)

  @repo.index.bulk(**kwargs)
end

#count(**kwargs) ⇒ Object



85
86
87
88
89
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 85

def count(**kwargs)
  warning("#{@repo}.#{@namespace}.count", "#{@repo.index}.count", 2023, 12)

  @repo.index.count(**kwargs)
end

#delete(**kwargs) ⇒ Object



73
74
75
76
77
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 73

def delete(**kwargs)
  warning("#{@repo}.#{@namespace}.delete", "#{@repo.index}.delete", 2023, 12)

  @repo.index.delete(**kwargs)
end

#delete!(**kwargs) ⇒ Object



67
68
69
70
71
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 67

def delete!(**kwargs)
  warning("#{@repo}.#{@namespace}.delete!", "#{@repo.index}.delete", 2023, 12)

  @repo.index.delete(**kwargs)
end

#delete_document(*args, **kwargs) ⇒ Object



79
80
81
82
83
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 79

def delete_document(*args, **kwargs)
  warning("#{@repo}.#{@namespace}.delete_document", "#{@repo.index}.delete", 2023, 12)

  @repo.index.delete(*args, **kwargs)
end

#exist?(**kwargs) ⇒ Boolean

Returns:

  • (Boolean)


91
92
93
94
95
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 91

def exist?(**kwargs)
  warning("#{@repo}.#{@namespace}.exist?", "#{@repo.index}.exist?", 2023, 12)

  @repo.index.exist?(**kwargs)
end

#find(**kwargs) ⇒ Object



103
104
105
106
107
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 103

def find(**kwargs)
  warning("#{@repo}.#{@namespace}.find", "#{@repo.index}.get", 2023, 12)

  @repo.index.get(**kwargs)
end

#find!(**kwargs) ⇒ Object



97
98
99
100
101
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 97

def find!(**kwargs)
  warning("#{@repo}.#{@namespace}.find!", "#{@repo.index}.get", 2023, 12)

  @repo.index.get(**kwargs)
end

#import(**kwargs) ⇒ Object



13
14
15
16
17
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 13

def import(**kwargs)
  warning("#{@repo}.#{@namespace}.import", "#{@repo}.import", 2023, 12)

  @repo.import(**kwargs)
end

#import!(**kwargs) ⇒ Object



19
20
21
22
23
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 19

def import!(**kwargs)
  warning("#{@repo}.#{@namespace}.import!", "#{@repo}.import", 2023, 12)

  @repo.import(**kwargs)
end

#index(**kwargs) ⇒ Object



37
38
39
40
41
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 37

def index(**kwargs)
  warning("#{@repo}.#{@namespace}.index", "#{@repo.index}.index", 2023, 12)

  @repo.index.index(**kwargs)
end

#index!(**kwargs) ⇒ Object



43
44
45
46
47
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 43

def index!(**kwargs)
  warning("#{@repo}.#{@namespace}.index!", "#{@repo.index}.index", 2023, 12)

  @repo.index.index(**kwargs)
end

#index_document(*args, **kwargs) ⇒ Object



49
50
51
52
53
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 49

def index_document(*args, **kwargs)
  warning("#{@repo}.#{@namespace}.index_document", "#{@repo.index}.index", 2023, 12)

  @repo.index.index(*args, **kwargs)
end

#update(**kwargs) ⇒ Object



61
62
63
64
65
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 61

def update(**kwargs)
  warning("#{@repo}.#{@namespace}.update", "#{@repo.index}.update", 2023, 12)

  @repo.index.update(**kwargs)
end

#update!(**kwargs) ⇒ Object



55
56
57
58
59
# File 'lib/esse/deprecations/repository_backend_delegator.rb', line 55

def update!(**kwargs)
  warning("#{@repo}.#{@namespace}.update!", "#{@repo.index}.update", 2023, 12)

  @repo.index.update(**kwargs)
end