class IOStreams::Path
Public Class Methods
demongoize(object)
click to toggle source
Get the object as it was stored in the database, and instantiate this custom class from it.
# File lib/rocket_job/extensions/iostreams/path.rb, line 10 def self.demongoize(object) return if object.nil? IOStreams.new(object) end
evolve(object)
click to toggle source
Converts the object that was supplied to a criteria and converts it into a database friendly form.
# File lib/rocket_job/extensions/iostreams/path.rb, line 26 def self.evolve(object) return if object.nil? object.to_s end
mongoize(object)
click to toggle source
Takes any possible object and converts it to how it would be stored in the database.
# File lib/rocket_job/extensions/iostreams/path.rb, line 18 def self.mongoize(object) return if object.nil? object.to_s end
Public Instance Methods
mongoize()
click to toggle source
Converts an object of this instance into a database friendly value.
# File lib/rocket_job/extensions/iostreams/path.rb, line 4 def mongoize to_s end