Sha256: 7acf3d2a5cadbb7ba02fb655f5caa5e188e7b9c1f73fc66f348668e526e9ab87
Contents?: true
Size: 782 Bytes
Versions: 1
Compression:
Stored size: 782 Bytes
Contents
module Evertils module Common module Entity class Base < Common::Generic attr_accessor :evernote, :entity def initialize @evernote = Authentication.instance super end # # @since 0.2.8 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 = ::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 # # @since 0.3.2 def to_s prop(:guid) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
evertils-common-0.3.2 | lib/evertils/common/entity.rb |