module Dimibob
Dimibob
Class
Constants
- VERSION
Public Class Methods
get(date)
click to toggle source
# File lib/dimibob.rb, line 24 def self.get(date) BobModel.new date end
today()
click to toggle source
# File lib/dimibob.rb, line 6 def self.today BobModel.new Time.now end
tomorrow()
click to toggle source
# File lib/dimibob.rb, line 17 def self.tomorrow time = Time.now date = Date.civil time.year, time.month, time.day + 1 BobModel.new date end
yesterday()
click to toggle source
# File lib/dimibob.rb, line 10 def self.yesterday time = Time.now date = Date.civil time.year, time.month, time.day - 1 BobModel.new date end