Skip to content

Instantly share code, notes, and snippets.

@nunogoncalves
Last active January 6, 2016 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nunogoncalves/e0d47d76b1c888d97d8e to your computer and use it in GitHub Desktop.
Save nunogoncalves/e0d47d76b1c888d97d8e to your computer and use it in GitHub Desktop.
struct Languages {
class Get: Getter {
func getUrl() -> String {
return "http://some_languages_website.com"
}
func getDataFrom(dictionary: NSDictionary) -> [Language] {
return extractLanguagesFrom(dictionary)
}
private func extractLanguagesFrom(dictionary: NSDictionary) -> [Languages] {
...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment