Class: UberS3

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/uber-s3.rb,
lib/uber-s3/error.rb,
lib/uber-s3/bucket.rb,
lib/uber-s3/object.rb,
lib/uber-s3/version.rb,
lib/uber-s3/response.rb,
lib/uber-s3/operation.rb,
lib/uber-s3/connection.rb,
lib/uber-s3/authorization.rb

Defined Under Namespace

Modules: Authorization, Connection, Error, Operation, Util Classes: Bucket, Object, Response

Constant Summary collapse

VERSION =
'0.1.5'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ UberS3

Returns a new instance of UberS3.



17
18
19
20
# File 'lib/uber-s3.rb', line 17

def initialize(options={})
  self.connection = Connection.open(self, options)
  self.bucket     = options[:bucket]
end

Instance Attribute Details

#bucketObject

Returns the value of attribute bucket.



14
15
16
# File 'lib/uber-s3.rb', line 14

def bucket
  @bucket
end

#connectionObject

Returns the value of attribute connection.



14
15
16
# File 'lib/uber-s3.rb', line 14

def connection
  @connection
end

Instance Method Details

#inspectObject



22
23
24
# File 'lib/uber-s3.rb', line 22

def inspect
  "#<UberS3 client v#{UberS3::VERSION}>"
end