Class: A2WS::Base
- Inherits:
-
Object
- Object
- A2WS::Base
- Extended by:
- Signature
- Includes:
- HTTParty
- Defined in:
- lib/a2ws/base.rb
Direct Known Subclasses
Constant Summary collapse
- @@secret_key =
''
Class Method Summary collapse
- .api_key=(key) ⇒ Object
- .configure {|_self| ... } ⇒ Object
- .request_uri ⇒ Object
- .secret_key ⇒ Object
- .secret_key=(key) ⇒ Object
Methods included from Signature
Class Method Details
.api_key=(key) ⇒ Object
13 14 15 |
# File 'lib/a2ws/base.rb', line 13 def self.api_key=(key) default_params :AWSAccessKeyId => key end |
.configure {|_self| ... } ⇒ Object
9 10 11 |
# File 'lib/a2ws/base.rb', line 9 def self.configure yield self end |
.request_uri ⇒ Object
25 26 27 |
# File 'lib/a2ws/base.rb', line 25 def self.request_uri '/onca/xml' end |
.secret_key ⇒ Object
21 22 23 |
# File 'lib/a2ws/base.rb', line 21 def self.secret_key @@secret_key end |
.secret_key=(key) ⇒ Object
17 18 19 |
# File 'lib/a2ws/base.rb', line 17 def self.secret_key=(key) @@secret_key = key end |