Module: Cistern::Collection::ClassMethods

Defined in:
lib/cistern/collection.rb

Instance Method Summary collapse

Instance Method Details

#cistern_method(name = nil) ⇒ Object



52
53
54
# File 'lib/cistern/collection.rb', line 52

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

#model(new_model = nil) ⇒ Object



39
40
41
# File 'lib/cistern/collection.rb', line 39

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

#service_method(name = nil) ⇒ Object

Deprecated.

Use #cistern_method instead



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

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