diff options
author | Teddy Wing | 2017-11-08 02:16:39 +0100 |
---|---|---|
committer | Teddy Wing | 2017-11-08 02:16:39 +0100 |
commit | 42b3a7089ac99afe399663ab0ee1686b7c27471a (patch) | |
tree | b0608efd2e83fccc6d5220697cd1e4a01416ac38 /src/lib.rs | |
parent | 8d3a48ec18b7235c6284d982563822f9df89cb73 (diff) | |
download | kipper-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/lib.rs')
0 files changed, 0 insertions, 0 deletions