Class: Discorb::Presence::Activity::Timestamps

Inherits:
DiscordModel
  • Object
show all
Defined in:
lib/discorb/presence.rb

Overview

Represents the timestamps of an activity.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #hash

Instance Attribute Details

#end -> Time (readonly)

Returns The end time of the activity.

Returns:

  • (Time)

    The end time of the activity.



141
142
143
# File 'lib/discorb/presence.rb', line 141

def end
  @end
end

#start -> Time (readonly)

Returns The start time of the activity.

Returns:

  • (Time)

    The start time of the activity.



139
140
141
# File 'lib/discorb/presence.rb', line 139

def start
  @start
end