From 547a6f34f22c91fe1b7d3abeb007ceab5493b353 Mon Sep 17 00:00:00 2001 From: Paul Young Date: Sat, 26 Sep 2015 22:27:36 -0700 Subject: [PATCH] Rename internal property to remove any possible confusion with RawRepresentable. --- ImgFlo/Client.swift | 4 ++-- ImgFlo/Graph.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ImgFlo/Client.swift b/ImgFlo/Client.swift index 4c38da5..ecc750c 100644 --- a/ImgFlo/Client.swift +++ b/ImgFlo/Client.swift @@ -49,9 +49,9 @@ public struct Client { let graphNameWithFormat: String if let format = derivedFormat { - graphNameWithFormat = graph.rawValue + "." + format.lowercaseString + graphNameWithFormat = graph.pathComponent + "." + format.lowercaseString } else { - graphNameWithFormat = graph.rawValue + graphNameWithFormat = graph.pathComponent } guard let token = "\(graphNameWithFormat)?\(query)\(secret)".MD5 else { diff --git a/ImgFlo/Graph.swift b/ImgFlo/Graph.swift index 160bbcb..a0c81be 100644 --- a/ImgFlo/Graph.swift +++ b/ImgFlo/Graph.swift @@ -19,7 +19,7 @@ public enum Graph { case MotionBlur(width: Int?, height: Int?, length: Double, angle: Double, brightness: Double, contrast: Double, strength: DecimalFraction) case Passthrough(width: Int?, height: Int?) - var rawValue: String { + var pathComponent: String { switch self { case .Canvas: return "canvas" case .Crop: return "crop"