5 // Created by Heberti Almeida on 29/04/15.
6 // Copyright (c) 2015 Folio Reader. All rights reserved.
11 open class FRResource: NSObject {
13 var properties: String?
14 var mediaType: MediaType!
15 var mediaOverlay: String?
17 public var href: String!
18 public var fullHref: String!
20 func basePath() -> String! {
21 if href == nil || href.isEmpty { return nil }
22 var paths = fullHref.components(separatedBy: "/")
24 return paths.joined(separator: "/")
30 func ==(lhs: FRResource, rhs: FRResource) -> Bool {
31 return lhs.id == rhs.id && lhs.href == rhs.href