Skip to content
This repository was archived by the owner on Jan 25, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Spine/Resource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
private(set) public var type: ResourceType

/// The resource ID.
var id: String
private(set) public var id: String

/// Constructs a new ResourceIdentifier instance with given `type` and `id`.
init(type: ResourceType, id: String) {
Expand All @@ -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]
}
}
Expand Down