Class: Twitch::Editor

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

Overview

A user who can edit broadcast content, settings, etc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Editor

Returns a new instance of Editor.



15
16
17
18
19
# File 'lib/twitch/editor.rb', line 15

def initialize(attributes = {})
  attributes.each do |key, value|
    instance_variable_set "@#{key}", value
  end
end

Instance Attribute Details

#created_atObject (readonly)

The date and time when the user became one of the broadcaster’s editors.



13
14
15
# File 'lib/twitch/editor.rb', line 13

def created_at
  @created_at
end

#user_idObject (readonly)

An ID that uniquely identifies a user with editor permissions.



7
8
9
# File 'lib/twitch/editor.rb', line 7

def user_id
  @user_id
end

#user_nameObject (readonly)

The user’s display name.



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

def user_name
  @user_name
end