@@ -47,18 +47,18 @@ @interface RKRequestDescriptor ()
47
47
@property (nonatomic , strong , readwrite ) RKMapping *mapping;
48
48
@property (nonatomic , strong , readwrite ) Class objectClass;
49
49
@property (nonatomic , copy , readwrite ) NSString *rootKeyPath;
50
- @property (nonatomic , assign , readwrite ) RKRequestMethod requestMethod ;
50
+ @property (nonatomic , assign , readwrite ) RKRequestMethod method ;
51
51
52
52
@end
53
53
54
54
@implementation RKRequestDescriptor
55
55
56
56
+ (instancetype )requestDescriptorWithMapping : (RKMapping *)mapping objectClass : (Class )objectClass rootKeyPath : (NSString *)rootKeyPath
57
57
{
58
- return [self requestDescriptorWithMapping: mapping objectClass: objectClass rootKeyPath: rootKeyPath requestMethod : RKRequestMethodAny];
58
+ return [self requestDescriptorWithMapping: mapping objectClass: objectClass rootKeyPath: rootKeyPath method : RKRequestMethodAny];
59
59
}
60
60
61
- + (instancetype )requestDescriptorWithMapping : (RKMapping *)mapping objectClass : (Class )objectClass rootKeyPath : (NSString *)rootKeyPath requestMethod : (RKRequestMethod)requestMethod
61
+ + (instancetype )requestDescriptorWithMapping : (RKMapping *)mapping objectClass : (Class )objectClass rootKeyPath : (NSString *)rootKeyPath method : (RKRequestMethod)method
62
62
{
63
63
NSParameterAssert (mapping);
64
64
NSParameterAssert (objectClass);
@@ -68,7 +68,7 @@ + (instancetype)requestDescriptorWithMapping:(RKMapping *)mapping objectClass:(C
68
68
requestDescriptor.mapping = mapping;
69
69
requestDescriptor.objectClass = objectClass;
70
70
requestDescriptor.rootKeyPath = rootKeyPath;
71
- requestDescriptor.requestMethod = requestMethod ;
71
+ requestDescriptor.method = method ;
72
72
return requestDescriptor;
73
73
}
74
74
@@ -78,9 +78,9 @@ - (NSString *)description
78
78
NSStringFromClass ([self class ]), self , NSStringFromClass (self .objectClass), self .rootKeyPath, self .mapping];
79
79
}
80
80
81
- - (BOOL )matchesObject : (id )object requestMethod : (RKRequestMethod)requestMethod exactMatch : (BOOL )exact
81
+ - (BOOL )matchesObject : (id )object method : (RKRequestMethod)method exactMatch : (BOOL )exact
82
82
{
83
- return (exact ? [object class ] == self.objectClass : [object isKindOfClass: self .objectClass] ) && (requestMethod & self.requestMethod ) != 0 ;
83
+ return (exact ? [object class ] == self.objectClass : [object isKindOfClass: self .objectClass] ) && (method & self.method ) != 0 ;
84
84
}
85
85
86
86
@end
0 commit comments