Created
August 18, 2014 22:46
-
-
Save jault3/02921219c88c2d0754b7 to your computer and use it in GitHub Desktop.
Environment.swift
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
import Foundation | |
class Environment { | |
var environmentId: String | |
var data: Dictionary<String, AnyObject> | |
var deployed: Bool | |
var dirty: Bool | |
init(dict: Dictionary<String, AnyObject>) { | |
self.environmentId = (dict["environmentId"] as AnyObject?) as String | |
self.data = (dict["data"] as AnyObject?) as Dictionary<String, AnyObject> | |
self.deployed = (dict["deployed"] as AnyObject?) as Bool | |
self.dirty = (dict["dirty"] as AnyObject?) as Bool | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment