module Doorkeeper::Rethinkdb::Timestamps

Public Instance Methods

created_at() click to toggle source
Calls superclass method
# File lib/support/orm/rethinkdb/timestamps.rb, line 27
def created_at
  Time.at(super)
end
revoked_at() click to toggle source
Calls superclass method
# File lib/support/orm/rethinkdb/timestamps.rb, line 13
def revoked_at
  revoked = super
  Time.at(revoked) unless revoked.nil?
end
revoked_at=(time) click to toggle source
Calls superclass method
# File lib/support/orm/rethinkdb/timestamps.rb, line 18
def revoked_at=(time)
  if time
    number = time.is_a?(Numeric) ? time.to_i : time.to_time.to_i
    super number
  else
    super nil
  end
end