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.2.4'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ UberS3

Returns a new instance of UberS3.



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

def initialize(options={})
  self.options = options
  self.bucket  = options[:bucket]
end

Instance Attribute Details

#bucketObject

Returns the value of attribute bucket.



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

def bucket
  @bucket
end

#connectionObject (readonly)

Returns the value of attribute connection.



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

def connection
  @connection
end

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#inspectObject



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

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