lib/evertils/common/entity.rb in evertils-common-0.2.8.2 vs lib/evertils/common/entity.rb in evertils-common-0.2.9

- old
+ new

@@ -22,21 +22,23 @@ puts "Deprecated as of #{version}" end # # @since 0.2.8 - def start_of_day(date = nil) - date = ::Time.now unless date - + def start_of_day(date = ::Time.now) ::Time.mktime(date.year, date.month, date.day, 12, 0, 0, 0, 0).to_datetime end # # @since 0.2.8 - def end_of_day(date = nil) - date = ::Time.now unless date - + def end_of_day(date = ::Time.now) ::Time.mktime(date.year, date.month, date.day, 23, 59, 59, 0).to_datetime + end + + # + # @since 0.2.9 + def prop(name) + @entity.send(name) end end end end \ No newline at end of file