Class: Twitch::V2::Team

Inherits:
Object
  • Object
show all
Defined in:
lib/kappa/team.rb

Overview

Teams are an organization of channels.

Instance Attribute Summary collapse

Instance Attribute Details

#background_urlString (readonly)

Returns URL for background image.

Examples:

"http://static-cdn.jtvnw.net/jtv_user_pictures/team-eg-background_image-da36973b6d829ac6.png"

Returns:

  • (String)

    URL for background image.



42
43
44
# File 'lib/kappa/team.rb', line 42

def background_url
  @background_url
end

Returns URL for banner image.

Examples:

"http://static-cdn.jtvnw.net/jtv_user_pictures/team-eg-banner_image-1ad9c4738f4698b1-640x125.png"

Returns:

  • (String)

    URL for banner image.



47
48
49
# File 'lib/kappa/team.rb', line 47

def banner_url
  @banner_url
end

#created_atTime (readonly)

Returns When the team was created (UTC).

Examples:

2011-10-27 01:00:44 UTC

Returns:

  • (Time)

    When the team was created (UTC).



74
75
76
# File 'lib/kappa/team.rb', line 74

def created_at
  @created_at
end

#display_nameString (readonly)

Returns User-friendly display name. This name is used for the team's page title.

Examples:

"TeamLiquid"

Returns:

  • (String)

    User-friendly display name. This name is used for the team's page title.

See Also:



64
65
66
# File 'lib/kappa/team.rb', line 64

def display_name
  @display_name
end

#idFixnum (readonly)

Returns Unique Twitch ID.

Examples:

12

Returns:

  • (Fixnum)

    Unique Twitch ID.



32
33
34
# File 'lib/kappa/team.rb', line 32

def id
  @id
end

#infoString (readonly)

Returns Info about the team. This is displayed on the team's page and can contain HTML.

Examples:

"TeamLiquid is awesome. and esports. video games. \n\n"

Returns:

  • (String)

    Info about the team. This is displayed on the team's page and can contain HTML.



37
38
39
# File 'lib/kappa/team.rb', line 37

def info
  @info
end

#logo_urlString (readonly)

Returns URL for the logo image.

Examples:

"http://static-cdn.jtvnw.net/jtv_user_pictures/team-eg-team_logo_image-9107b874d4c3fc3b-300x300.jpeg"

Returns:

  • (String)

    URL for the logo image.



52
53
54
# File 'lib/kappa/team.rb', line 52

def logo_url
  @logo_url
end

#nameString (readonly)

Returns Unique Twitch name.

Examples:

"teamliquid"

Returns:

  • (String)

    Unique Twitch name.

See Also:



58
59
60
# File 'lib/kappa/team.rb', line 58

def name
  @name
end

#updated_atTime (readonly)

Returns When the team was last updated (UTC).

Examples:

2013-05-24 00:17:10 UTC

Returns:

  • (Time)

    When the team was last updated (UTC).



69
70
71
# File 'lib/kappa/team.rb', line 69

def updated_at
  @updated_at
end

#urlString (readonly)

Returns URL for the team's Twitch landing page.

Examples:

"http://www.twitch.tv/team/teamliquid"

Returns:

  • (String)

    URL for the team's Twitch landing page.



79
80
81
# File 'lib/kappa/team.rb', line 79

def url
  @url
end