lib/evertils/common/query.rb in evertils-common-0.3.1 vs lib/evertils/common/query.rb in evertils-common-0.3.2
- old
+ new
@@ -1,33 +1,23 @@
module Evertils
module Common
module Query
- class Base
-
+ class Base < Common::Generic
#
# @since 0.2.8
- def deprecation_notice(version, message)
- output = "Deprecated as of #{version}"
- output += "\nReason: #{message}" if message
- output
- end
-
- #
- # @since 0.2.8
def start_of_day(date = nil)
date = ::Time.now unless date
::Time.mktime(date.year, date.month, date.day, 12, 0, 0).to_datetime
end
#
# @since 0.2.8
def end_of_day(date = nil)
date = ::Time.now unless date
-
+
::Time.mktime(date.year, date.month, date.day, 23, 59, 59).to_datetime
end
-
end
end
end
end
\ No newline at end of file