Class: Best3

Inherits:
Object
  • Object
show all
Defined in:
lib/best3.rb

Defined Under Namespace

Classes: Wrapper

Constant Summary collapse

VERSION =
'0.0.1'

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Best3

Returns a new instance of Best3.



9
10
11
12
# File 'lib/best3.rb', line 9

def initialize(*args)
  @key, @secret = args
  self
end

Instance Method Details

#cloudfrontObject



18
19
20
21
# File 'lib/best3.rb', line 18

def cloudfront()
  # cloudfront MUST use https
  Wrapper.new('https://cloudfront.amazonaws.com', @key, @secret)
end

#s3Object



14
15
16
# File 'lib/best3.rb', line 14

def s3()
  Wrapper.new('http://s3.amazonaws.com', @key, @secret)
end