-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christoph Pageler
committed
Oct 24, 2018
1 parent
ca11d61
commit 9830489
Showing
2 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// JiraProject.swift | ||
// JiraSwift | ||
// | ||
// Created by Christoph Pageler on 24.10.18. | ||
// | ||
|
||
|
||
import Foundation | ||
import Quack | ||
|
||
|
||
public extension Jira { | ||
|
||
public class Project: Quack.Model { | ||
|
||
public let id: String | ||
public let key: String | ||
public let name: String | ||
|
||
public required init?(json: JSON) { | ||
guard let id = json["id"].string, | ||
let key = json["key"].string, | ||
let name = json["name"].string | ||
else { | ||
return nil | ||
} | ||
|
||
self.id = id | ||
self.key = key | ||
self.name = name | ||
} | ||
|
||
} | ||
|
||
} |