Class: A2WS::Base

Inherits:
Object
  • Object
show all
Extended by:
Signature
Includes:
HTTParty
Defined in:
lib/a2ws/base.rb

Direct Known Subclasses

ImageSearch, ItemSearch

Constant Summary collapse

@@secret_key =
''

Class Method Summary collapse

Methods included from Signature

sign_request

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

Yields:

  • (_self)

Yield Parameters:

  • _self (A2WS::Base)

    the object that the method was called on



9
10
11
# File 'lib/a2ws/base.rb', line 9

def self.configure
  yield self
end

.request_uriObject



25
26
27
# File 'lib/a2ws/base.rb', line 25

def self.request_uri
  '/onca/xml'
end

.secret_keyObject



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