Module: Dimibob

Defined in:
lib/dimibob.rb,
lib/dimibob/version.rb

Overview

Dimibob Class

Constant Summary collapse

VERSION =
'0.2.1'.freeze

Class Method Summary collapse

Class Method Details

.get(date) ⇒ Object



24
25
26
# File 'lib/dimibob.rb', line 24

def self.get(date)
  BobModel.new date
end

.todayObject



6
7
8
# File 'lib/dimibob.rb', line 6

def self.today
  BobModel.new Time.now
end

.tomorrowObject



17
18
19
20
21
22
# 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

.yesterdayObject



10
11
12
13
14
15
# 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