1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/models/s3/object.rb

25 lines
511 B
Ruby
Raw Normal View History

2009-08-02 16:37:54 -07:00
module Fog
module AWS
class S3
class Object < Fog::Model
attr_accessor :etag, :key, :last_modified, :owner, :size, :storage_class
2009-08-04 10:51:54 -07:00
def initialize(attributes = {})
remap_attributes(attributes, {
'ETag' => :etag,
'Key' => :key,
'LastModified' => :last_modified,
'Size' => :size,
'StorageClass' => :storage_class
})
super
end
2009-08-02 16:37:54 -07:00
end
end
end
end