Merge pull request #5 from Perfect-Forks/master

Make asData and asDataDict functions open
This commit is contained in:
Jonathan Guthrie 2017-11-01 14:04:19 -04:00 committed by GitHub
commit a5efa7bbf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ open class StORM {
/// Returns a [(String,Any)] object representation of the current object.
/// If any object property begins with an underscore, or with "internal_" it is omitted from the response.
public func asData(_ offset: Int = 0) -> [(String, Any)] {
open func asData(_ offset: Int = 0) -> [(String, Any)] {
var c = [(String, Any)]()
var count = 0
let mirror = Mirror(reflecting: self)
@ -71,7 +71,7 @@ open class StORM {
/// Returns a [String:Any] object representation of the current object.
/// If any object property begins with an underscore, or with "internal_" it is omitted from the response.
public func asDataDict(_ offset: Int = 0) -> [String: Any] {
open func asDataDict(_ offset: Int = 0) -> [String: Any] {
var c = [String: Any]()
var count = 0
let mirror = Mirror(reflecting: self)