diff --git a/Spine/Resource.swift b/Spine/Resource.swift index d2fda3bf..07d607de 100644 --- a/Spine/Resource.swift +++ b/Spine/Resource.swift @@ -13,10 +13,10 @@ public typealias ResourceType = String /// A ResourceIdentifier uniquely identifies a resource that exists on the server. public struct ResourceIdentifier: Equatable { /// The resource type. - var type: ResourceType + public private(set) var type: ResourceType /// The resource ID. - var id: String + public private(set) var id: String /// Constructs a new ResourceIdentifier instance with given `type` and `id`. init(type: ResourceType, id: String) { @@ -32,7 +32,7 @@ public struct ResourceIdentifier: Equatable { } /// Returns a dictionary with "type" and "id" keys containing the type and id. - func toDictionary() -> NSDictionary { + public func toDictionary() -> NSDictionary { return ["type": type, "id": id] } }