aboutsummaryrefslogtreecommitdiffstats
path: root/src/github.rs
diff options
context:
space:
mode:
authorTeddy Wing2017-11-08 02:16:39 +0100
committerTeddy Wing2017-11-08 02:16:39 +0100
commit42b3a7089ac99afe399663ab0ee1686b7c27471a (patch)
treeb0608efd2e83fccc6d5220697cd1e4a01416ac38 /src/github.rs
parent8d3a48ec18b7235c6284d982563822f9df89cb73 (diff)
downloadkipper-42b3a7089ac99afe399663ab0ee1686b7c27471a.tar.bz2
jenkins.rs: Add `Job::new` function to create Job from JSON payload
Now we can parse the JSON payload in a single place and extract the values from it into a new `Job`. Change `Job.result`'s type to `JobStatus` because that makes more sense. Now, `result_from_job` gets called in `Job::new` to give us the `JobStatus` directly on the `Job`. Modify `result_from_job` to fit into its new responsibility, working for `Job::new`. Update the tests accordingly.
Diffstat (limited to 'src/github.rs')
0 files changed, 0 insertions, 0 deletions