summaryrefslogtreecommitdiff
path: root/lib/github/representation/release.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/github/representation/release.rb')
-rw-r--r--lib/github/representation/release.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/github/representation/release.rb b/lib/github/representation/release.rb
new file mode 100644
index 00000000000..e7e4b428c1a
--- /dev/null
+++ b/lib/github/representation/release.rb
@@ -0,0 +1,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