Class: Twitch::Editor
- Inherits:
-
Object
- Object
- Twitch::Editor
- Defined in:
- lib/twitch/editor.rb
Overview
A user who can edit broadcast content, settings, etc.
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
The date and time when the user became one of the broadcaster’s editors.
-
#user_id ⇒ Object
readonly
An ID that uniquely identifies a user with editor permissions.
-
#user_name ⇒ Object
readonly
The user’s display name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Editor
constructor
A new instance of Editor.
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_at ⇒ Object (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_id ⇒ Object (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_name ⇒ Object (readonly)
The user’s display name.
10 11 12 |
# File 'lib/twitch/editor.rb', line 10 def user_name @user_name end |