RSDResourceTransformerObject
public struct RSDResourceTransformerObject : Codable
RSDResourceTransformerObject
is a concrete implementation of a codable resource transformer. The transformer
can be used to create an object decoded from an embedded resource.
-
Either a fully qualified URL string or else a relative reference to either an embedded resource or a relative URL defined globally by overriding the
RSDResourceConfig
class methods.Declaration
Swift
public let resourceName: String
-
The bundle identifier for the embedded resource.
Declaration
Swift
public let bundleIdentifier: String?
-
The classType for converting the resource to an object. This is a hint that subclasses of
RsDFactory
can use to determine the type of object to instantiate.Declaration
Swift
public let classType: String?
-
Default initializer for creating the object.
Declaration
Swift
public init(resourceName: String, bundleIdentifier: String? = nil, classType: String? = nil)
Parameters
resourceName
The name of the resource.
bundleIdentifier
The bundle identifier for the embedded resource.
classType
The classType for converting the resource to an object.