Skip to content

Commit 71bdbff

Browse files
committed
Expose getters only.
1 parent 60bf898 commit 71bdbff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Spine/Resource.swift

Lines changed: 2 additions & 2 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-
public var type: ResourceType
16+
public private(set) var type: ResourceType
1717

1818
/// The resource ID.
19-
public 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) {

0 commit comments

Comments
 (0)