Sha256: f2c32a71cd9fcff1dd1cb0694310f43ceb5a71744fa93d78fe7c6dd0e089ba19
Contents?: true
Size: 612 Bytes
Versions: 4
Compression:
Stored size: 612 Bytes
Contents
# https://confluence.jetbrains.com/display/YTD6/GET+Project+Custom+Fields class YouTrack::Client::GetProjectCustomFields < YouTrack::Client::Request def real(id) service.request( :path => "/admin/project/#{id}/customfield", :parser => YouTrack::Parser::ProjectCustomFieldsParser, ) end def mock(id) prototypes = find(:project_custom_fields, id) body = prototypes.inject([]) { |r,p| name = p.fetch("name") r << { "name" => name, "url" => service.url_for("/admin/project/#{id}/#{name}"), } } service.response(body: body) end end
Version data entries
4 entries across 4 versions & 1 rubygems