Skip to content

Commit 0eea26a

Browse files
authored
Merge pull request #1 from zuchie/zuchie
Make ResourceIdentifier.type/id/toDictionary() public access level.
2 parents 4ecfab6 + 71bdbff commit 0eea26a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Spine/Resource.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ public typealias ResourceType = String
1313
/// A ResourceIdentifier uniquely identifies a resource that exists on the server.
1414
public struct ResourceIdentifier: Equatable {
1515
/// The resource type.
16-
var type: ResourceType
16+
public private(set) var type: ResourceType
1717

1818
/// The resource ID.
19-
var id: String
19+
public private(set) var id: String
2020

2121
/// Constructs a new ResourceIdentifier instance with given `type` and `id`.
2222
init(type: ResourceType, id: String) {
@@ -32,7 +32,7 @@ public struct ResourceIdentifier: Equatable {
3232
}
3333

3434
/// Returns a dictionary with "type" and "id" keys containing the type and id.
35-
func toDictionary() -> NSDictionary {
35+
public func toDictionary() -> NSDictionary {
3636
return ["type": type, "id": id]
3737
}
3838
}

0 commit comments

Comments
 (0)