class Discorb::Presence::Activity::Timestamps
Represents the timestamps of an activity.
Attributes
end[R]
@return [Time] The end time of the activity.
start[R]
@return [Time] The start time of the activity.
Public Class Methods
new(data)
click to toggle source
@!visibility private
# File lib/discorb/presence.rb, line 144 def initialize(data) @start = data[:start] && Time.at(data[:start]) @end = data[:end] && Time.at(data[:end]) end