Statistics
| Branch: | Revision:

root / asi-http-request-with-pithos / Classes / S3 / ASIS3Bucket.m @ cc176feb

History | View | Annotate | Download (886 Bytes)

1
//
2
//  ASIS3Bucket.m
3
//  Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
4
//
5
//  Created by Ben Copsey on 16/03/2010.
6
//  Copyright 2010 All-Seeing Interactive. All rights reserved.
7
//
8

    
9
#import "ASIS3Bucket.h"
10

    
11

    
12
@implementation ASIS3Bucket
13

    
14
+ (id)bucketWithOwnerID:(NSString *)anOwnerID ownerName:(NSString *)anOwnerName
15
{
16
	ASIS3Bucket *bucket = [[[self alloc] init] autorelease];
17
	[bucket setOwnerID:anOwnerID];
18
	[bucket setOwnerName:anOwnerName];
19
	return bucket;
20
}
21

    
22
- (void)dealloc
23
{
24
	[name release];
25
	[creationDate release];
26
	[ownerID release];
27
	[ownerName release];
28
	[super dealloc];
29
}
30

    
31
- (NSString *)description
32
{
33
	return [NSString stringWithFormat:@"Name: %@ creationDate: %@ ownerID: %@ ownerName: %@",[self name],[self creationDate],[self ownerID],[self ownerName]];
34
}
35

    
36
@synthesize name;
37
@synthesize creationDate;
38
@synthesize ownerID;
39
@synthesize ownerName;
40
@end