lib/githu3/issue.rb in githu3-0.0.3 vs lib/githu3/issue.rb in githu3-0.0.4
- old
+ new
@@ -1,9 +1,18 @@
module Githu3
class Issue < Githu3::Resource
has_many :events
has_many :comments
- has_many :labels
+ # members
+ embeds_many :labels
+ embeds_one :user
+ embeds_one :milestone
+ embeds_one :assignee, :class_name => :user
+
+ def _mime_type mt
+ "application/vnd.github-issue.#{mt}+json"
+ end
+
end
end
\ No newline at end of file