Class: RubyCord::User::Activity::Timestamps

Inherits:
DiscordModel show all
Defined in:
lib/rubycord/user/activity.rb

Overview

Represents the timestamps of an activity.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#endTime (readonly)

Returns The end time of the activity.

Returns:

  • (Time)

    The end time of the activity.



113
114
115
# File 'lib/rubycord/user/activity.rb', line 113

def end
  @end
end

#startTime (readonly)

Returns The start time of the activity.

Returns:

  • (Time)

    The start time of the activity.



111
112
113
# File 'lib/rubycord/user/activity.rb', line 111

def start
  @start
end