Sha256: 0b07265731bf07c00a8940c4ed7dab5cbe1ae6cf718fd335a2e7018acae7718b
Contents?: true
Size: 632 Bytes
Versions: 3
Compression:
Stored size: 632 Bytes
Contents
# frozen_string_literal: true module Kentaa module Api module Resources class Teams < List include Enumerable def each(&block) teams.each(&block) end protected def load_resource(options) request.get("/teams", options) end private def teams @teams ||= begin teams = [] if data data.each do |team| teams << Kentaa::Api::Resources::Team.new(config, data: team) end end teams end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kentaa-api-0.3.2 | lib/kentaa/api/resources/teams.rb |
kentaa-api-0.3.1 | lib/kentaa/api/resources/teams.rb |
kentaa-api-0.3.0 | lib/kentaa/api/resources/teams.rb |