Class: Best3

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

Defined Under Namespace

Classes: Wrapper

Constant Summary collapse

VERSION =
'0.0.3'

Instance Method Summary collapse

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

#cloudfrontObject



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

#s3Object



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

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