Skip to content

Commit 9538a77

Browse files
committed
[Attribute] Convert to a structure
1 parent 080d34c commit 9538a77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

QueryKit/Attribute.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
import Foundation
1010

11-
public class Attribute<T> : Equatable {
11+
public struct Attribute<T> : Equatable {
1212
public let name:String
1313

1414
public init(_ name:String) {
1515
self.name = name
1616
}
1717

1818
/// Builds a compound attribute with other key paths
19-
public convenience init(attributes:Array<String>) {
19+
public init(attributes:Array<String>) {
2020
self.init(".".join(attributes))
2121
}
2222

0 commit comments

Comments
 (0)