Module: Cistern::Collection::ClassMethods

Defined in:
lib/cistern/collection.rb

Instance Method Summary collapse

Instance Method Details

#cistern_method(name = nil) ⇒ Object



50
51
52
# File 'lib/cistern/collection.rb', line 50

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

#model(new_model = nil) ⇒ Object



37
38
39
# File 'lib/cistern/collection.rb', line 37

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

#service_method(name = nil) ⇒ Object

Deprecated.

Use #cistern_method instead



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

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