Sha256: dc37387c4593383805d8b493f1727ec483a1a171236c0b8dbfc797ca097b0b32
Contents?: true
Size: 497 Bytes
Versions: 8
Compression:
Stored size: 497 Bytes
Contents
class YouTrack::Client::GetProjects < YouTrack::Client::Request def self.attributes @_attributes ||= %w[name shortName isImporting subsystems assignees versions] end def real service.request( :path => "/project/all", :parser => YouTrack::Parser::ProjectsParser, :query => {"verbose" => true}, ) end def mock service.response( :body => service.data[:projects].values.map { |p| Cistern::Hash.slice(p, *self.class.attributes) } ) end end
Version data entries
8 entries across 8 versions & 1 rubygems