module RocketJob::MongoidClients::Options

Public Instance Methods

collection(parent = nil) click to toggle source
Calls superclass method
# File lib/rocket_job/extensions/mongoid/clients/options.rb, line 13
def collection(parent = nil)
  @collection_name ? mongo_client[@collection_name] : super(parent)
end
collection_name() click to toggle source
Calls superclass method
# File lib/rocket_job/extensions/mongoid/clients/options.rb, line 17
def collection_name
  @collection_name || super
end
collection_name=(collection_name) click to toggle source
# File lib/rocket_job/extensions/mongoid/clients/options.rb, line 21
def collection_name=(collection_name)
  @collection_name = collection_name&.to_sym
end
with_collection(collection_name) click to toggle source
# File lib/rocket_job/extensions/mongoid/clients/options.rb, line 8
def with_collection(collection_name)
  self.collection_name = collection_name
  self
end