-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathActiveResult.h
More file actions
40 lines (29 loc) · 882 Bytes
/
ActiveResult.h
File metadata and controls
40 lines (29 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// ActiveResult.h
// Shopify_Mobile
//
// Created by Matthew Newberry on 8/2/10.
// Copyright 2010 Shopify. All rights reserved.
//
#import <Foundation/Foundation.h>
@class ActiveRecord;
@interface ActiveResult : NSObject {
NSArray *_objects;
NSError *_error;
NSString *_urlPath;
NSDictionary *_headers;
id _source;
}
@property (nonatomic, retain) NSString *urlPath;
@property (nonatomic, retain) id source;
@property (nonatomic, retain) NSArray *objects;
@property (nonatomic, retain) NSError *error;
@property (nonatomic, retain) NSDictionary *headers;
- (id) initWithResults:(NSArray *)results;
- (id) initWithSource:(id) resultSource;
- (id) initWithError:(NSError*) errorRef;
- (id) object;
- (BOOL) hasObjects;
- (int) count;
- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState*)state objects:(id*)stackbuf count:(NSUInteger)len;
@end