summaryrefslogtreecommitdiff
path: root/lib/github/representation/release.rb
blob: e7e4b428c1a5586f0ed7445d89eb11ddb563901d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Github
  module Representation
    class Release < Representation::Base
      def description
        raw['body']
      end

      def tag
        raw['tag_name']
      end

      def valid?
        !raw['draft']
      end
    end
  end
end