Class: Best3
- Inherits:
-
Object
- Object
- Best3
- Defined in:
- lib/best3.rb
Defined Under Namespace
Classes: Wrapper
Constant Summary collapse
- VERSION =
'0.0.3'
Instance Method Summary collapse
- #cloudfront ⇒ Object
-
#initialize(*args) ⇒ Best3
constructor
A new instance of Best3.
- #s3 ⇒ Object
Constructor Details
#initialize(*args) ⇒ Best3
Returns a new instance of Best3.
8 9 10 11 |
# File 'lib/best3.rb', line 8 def initialize(*args) @key, @secret = args self end |
Instance Method Details
#cloudfront ⇒ Object
17 18 19 20 |
# File 'lib/best3.rb', line 17 def cloudfront() # cloudfront MUST use https Wrapper.new('https://cloudfront.amazonaws.com', @key, @secret) end |
#s3 ⇒ Object
13 14 15 |
# File 'lib/best3.rb', line 13 def s3() Wrapper.new('http://s3.amazonaws.com', @key, @secret) end |