lib/evertils/common/entity.rb in evertils-common-0.3.0 vs lib/evertils/common/entity.rb in evertils-common-0.3.1
- old
+ new
@@ -1,11 +1,11 @@
module Evertils
module Common
module Entity
class Base
- attr_accessor :evernote
+ attr_accessor :evernote, :entity
def initialize
@evernote = Authentication.instance
end
@@ -17,11 +17,13 @@
end
end
#
# @since 0.2.8
- def deprecation_notice(version)
- puts "Deprecated as of #{version}"
+ 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 = ::Time.now)
\ No newline at end of file