Module: Cistern::Collection::ClassMethods

Defined in:
lib/cistern/collection.rb

Instance Method Summary collapse

Instance Method Details

#cistern_method(name = nil) ⇒ Object



48
49
50
# File 'lib/cistern/collection.rb', line 48

def cistern_method(name = nil)
  @_cistern_method ||= name
end

#model(new_model = nil) ⇒ Object



35
36
37
# File 'lib/cistern/collection.rb', line 35

def model(new_model = nil)
  @_model ||= new_model
end

#service_method(name = nil) ⇒ Object

Deprecated.

Use #cistern_method instead



40
41
42
43
44
45
46
# File 'lib/cistern/collection.rb', line 40

def service_method(name = nil)
  Cistern.deprecation(
    '#service_method is deprecated.  Please use #cistern_method',
    caller[0]
  )
  @_cistern_method ||= name
end