Sha256: 5f776210daf3d79efb415de3b0eba58b5331fafda5b483526a33291f782575b4
Contents?: true
Size: 342 Bytes
Versions: 3
Compression:
Stored size: 342 Bytes
Contents
module GotFixed class IssueFactory def from_github(github_issue) issue = Issue.find_or_initialize_by :vendor_id => github_issue["id"].to_s, :vendor => "github" issue.title = github_issue["title"] issue.closed = github_issue["state"] == "closed" issue.number = github_issue["number"] issue end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
got_fixed-0.1.0 | lib/got_fixed/issue_factory.rb |
got_fixed-0.0.6 | lib/got_fixed/issue_factory.rb |
got_fixed-0.0.5 | lib/got_fixed/issue_factory.rb |