Class: Twitch::BitsLeader

Inherits:
Object
  • Object
show all
Defined in:
lib/twitch/bits_leader.rb

Overview

A user that is a leader for bits.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ BitsLeader

Returns a new instance of BitsLeader.



12
13
14
15
16
# File 'lib/twitch/bits_leader.rb', line 12

def initialize(attributes = {})
  @user_id = attributes['user_id']
  @rank = attributes['rank']
  @score = attributes['score']
end

Instance Attribute Details

#rankObject (readonly)

Ranking of the user giving bits. Reflects the parent object’s date range.



8
9
10
# File 'lib/twitch/bits_leader.rb', line 8

def rank
  @rank
end

#scoreObject (readonly)

Number of bits given in the parent object’s date range.



10
11
12
# File 'lib/twitch/bits_leader.rb', line 10

def score
  @score
end

#user_idObject (readonly)

ID of the user giving bits.



5
6
7
# File 'lib/twitch/bits_leader.rb', line 5

def user_id
  @user_id
end