Class: Sifter::Project

Inherits:
Hashie::Dash
  • Object
show all
Defined in:
lib/sifter/project.rb

Overview

Wrapper for a Sifter project. Fetch projects using Sifter::Account.

Instance Method Summary collapse

Instance Method Details

#issuesObject

Fetch all the issues on this project. Returns an array of Sifter::Issue objects.



19
20
21
22
23
24
# File 'lib/sifter/project.rb', line 19

def issues
  Sifter.
    get(api_issues_url).
    fetch("issues", []).
    map { |i| Sifter::Issue.new(i) }
end

#milestonesObject

Fetch all the milestones for this project. Returns an array of Sifter::Milestone objects.



28
29
30
31
32
33
# File 'lib/sifter/project.rb', line 28

def milestones
  Sifter.
    get(api_milestones_url).
    fetch("milestones", []).
    map { |m| Sifter::Milestone.new(m) }
end

#peopleObject

Fetch all the people linked to this project. Returns an array of Sifter::Person objects.



37
38
39
40
41
42
# File 'lib/sifter/project.rb', line 37

def people
  Sifter.
    get(api_people_url).
    fetch("people", []).
    map { |p| Sifter::Person.new(p) }
end