Sha256: 8b53007b139732c318ec57347d9c86d7a1a2a52cc07d25b11ecb98b93c221407
Contents?: true
Size: 586 Bytes
Versions: 1
Compression:
Stored size: 586 Bytes
Contents
# frozen_string_literal: true module Tempo module Resource class TeamFactory < Tempo::BaseFactory; end class Team < Tempo::Base def self.singular_path(client, key, prefix = '/') collection_path(client, prefix) + key end def members(params = {}) path = path_base(client) + "teams/#{id}/members" response = client.get(url_with_query_params(path, params)) json = self.class.parse_json(response.body) results = json['results'] results.map { |issue| client.TeamMember.build(issue) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tempo-ruby-0.1.0 | lib/tempo/resource/team.rb |