Sha256: 49c36b17550d4ae6494e2d8203ef57e6104c7ee838c69bbd7ce7bf85bf768f39

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module Kentaa
  module Api
    module Clients
      class Teams < Base
        include Kentaa::Api::Clients::All

        def list(options = {})
          teams = Kentaa::Api::Resources::Teams.new(config, options)
          teams.load
        end

        def get(id, options = {})
          team = Kentaa::Api::Resources::Team.new(config, options.merge(id: id))
          team.load
        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/clients/teams.rb
kentaa-api-0.3.1 lib/kentaa/api/clients/teams.rb
kentaa-api-0.3.0 lib/kentaa/api/clients/teams.rb