Welcome to mirror list, hosted at ThFree Co, Russian Federation.

milestone.rb « representation « github « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 917e6394ad4bf47bd9ec15da00fa2f3a7a9ae6f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module Github
  module Representation
    class Milestone < Representation::Base
      def iid
        raw['number']
      end

      def title
        raw['title']
      end

      def description
        raw['description']
      end

      def due_date
        raw['due_on']
      end

      def state
        raw['state'] == 'closed' ? 'closed' : 'active'
      end
    end
  end
end