Class: Twitch::V2::Teams
- Inherits:
-
Object
- Object
- Twitch::V2::Teams
- Defined in:
- lib/kappa/team.rb
Overview
Query class for finding all active teams.
Instance Method Summary collapse
-
#all(options = {}) {|team| ... } ⇒ Array<Team>?
Get the list of all active teams.
-
#get(team_name) ⇒ Team
Get a team by name.
Instance Method Details
#all(options = {}) {|team| ... } ⇒ Array<Team>?
Get the list of all active teams.
121 122 123 124 125 126 127 128 129 130 |
# File 'lib/kappa/team.rb', line 121 def all( = {}, &block) return @query.connection.accumulate( :path => 'teams', :json => 'teams', :create => Team, :limit => [:limit], :offset => [:offset], &block ) end |