Module: RAWS
- Defined in:
- lib/raws.rb,
lib/raws/xml.rb,
lib/raws/http.rb,
lib/raws/xml/nokogiri.rb
Defined Under Namespace
Modules: HTTP, XML Classes: S3, SDB, SQS
Class Attribute Summary collapse
-
.aws_access_key_id ⇒ Object
Returns the value of attribute aws_access_key_id.
-
.aws_secret_access_key ⇒ Object
Returns the value of attribute aws_secret_access_key.
-
.http ⇒ Object
Returns the value of attribute http.
-
.xml ⇒ Object
Returns the value of attribute xml.
Class Method Summary collapse
Class Attribute Details
.aws_access_key_id ⇒ Object
Returns the value of attribute aws_access_key_id.
9 10 11 |
# File 'lib/raws.rb', line 9 def aws_access_key_id @aws_access_key_id end |
.aws_secret_access_key ⇒ Object
Returns the value of attribute aws_secret_access_key.
10 11 12 |
# File 'lib/raws.rb', line 10 def aws_secret_access_key @aws_secret_access_key end |
.http ⇒ Object
Returns the value of attribute http.
11 12 13 |
# File 'lib/raws.rb', line 11 def http @http end |
.xml ⇒ Object
Returns the value of attribute xml.
12 13 14 |
# File 'lib/raws.rb', line 12 def xml @xml end |
Class Method Details
.escape(val) ⇒ Object
15 16 17 |
# File 'lib/raws.rb', line 15 def self.escape(val) URI.escape(val.to_s, /([^a-zA-Z0-9\-_.~]+)/n) end |
.logger ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/raws.rb', line 23 def self.logger @logger ||= begin logger = Logger.new(STDERR) logger.progname = self.name logger.level = Logger::INFO def logger.debug(val) require 'yaml' super(val.to_yaml) end logger end end |
.unescape(val) ⇒ Object
19 20 21 |
# File 'lib/raws.rb', line 19 def self.unescape(val) URI.unescape(val.to_s) end |