class Discorb::Presence::Activity::Party

Attributes

id[R]

@return [String] The id of the party.

Public Class Methods

new(data) click to toggle source

@!visibility private

# File lib/discorb/presence.rb, line 160
def initialize(data)
  @id = data[:id]
  @size = data[:size]
end

Public Instance Methods

current_size() click to toggle source
# File lib/discorb/presence.rb, line 165
def current_size
  @size[0]
end
max_size() click to toggle source
# File lib/discorb/presence.rb, line 169
def max_size
  @size[1]
end