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

Version Path
you_track-0.4.8 lib/you_track/client/requests/get_projects.rb
you_track-0.4.7 lib/you_track/client/requests/get_projects.rb
you_track-0.4.6 lib/you_track/client/requests/get_projects.rb
you_track-0.4.5 lib/you_track/client/requests/get_projects.rb
you_track-0.4.4 lib/you_track/client/requests/get_projects.rb
you_track-0.4.2 lib/you_track/client/requests/get_projects.rb
you_track-0.4.1 lib/you_track/client/requests/get_projects.rb
you_track-0.4.0 lib/you_track/client/requests/get_projects.rb