Class: GotFixed::IssueFactory
- Inherits:
-
Object
- Object
- GotFixed::IssueFactory
- Defined in:
- lib/got_fixed/issue_factory.rb
Instance Method Summary collapse
Instance Method Details
#from_github(github_issue) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/got_fixed/issue_factory.rb', line 3 def from_github(github_issue) issue = Issue.find_or_initialize_by :vendor_id => github_issue["id"], :vendor => "github" issue.title = github_issue["title"] issue.closed = github_issue["state"] == "closed" issue.number = github_issue["number"] issue end |