Module: CloudFiles
- Defined in:
- lib/cloudfiles.rb,
lib/cloudfiles/version.rb,
lib/cloudfiles/container.rb,
lib/cloudfiles/exception.rb,
lib/cloudfiles/connection.rb,
lib/cloudfiles/authentication.rb,
lib/cloudfiles/storage_object.rb
Overview
The new properly scoped exceptions.
Defined Under Namespace
Classes: Authentication, Connection, Container, Exception, StorageObject
Constant Summary collapse
- AUTH_USA =
"https://auth.api.rackspacecloud.com/v1.0"
- AUTH_UK =
"https://lon.auth.api.rackspacecloud.com/v1.0"
- VERSION =
'1.5.0.2'
Class Method Summary collapse
Class Method Details
.escape(str) ⇒ Object
53 54 55 |
# File 'lib/cloudfiles.rb', line 53 def self.escape(str) URI.encode(str) end |
.lines(str) ⇒ Object
49 50 51 |
# File 'lib/cloudfiles.rb', line 49 def self.lines(str) (str.respond_to?(:lines) ? str.lines : str).to_a.map { |x| x.chomp } end |