Class: Awis::Client
- Inherits:
-
Object
- Object
- Awis::Client
- Defined in:
- lib/awis/client.rb
Instance Method Summary collapse
- #category_browse(args) ⇒ Object
- #category_listings(args) ⇒ Object
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #sites_linking_in(args) ⇒ Object
- #traffic_history(args) ⇒ Object
- #url_info(args) ⇒ Object
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
5 6 7 |
# File 'lib/awis/client.rb', line 5 def initialize raise CertificateError, 'Amazon access certificate is missing!' if Awis.config.access_key_id.nil? || Awis.config.secret_access_key.nil? end |
Instance Method Details
#category_browse(args) ⇒ Object
21 22 23 |
# File 'lib/awis/client.rb', line 21 def category_browse(args) parse_response_with_request('CategoryBrowse', args) end |
#category_listings(args) ⇒ Object
25 26 27 |
# File 'lib/awis/client.rb', line 25 def category_listings(args) parse_response_with_request('CategoryListings', args) end |
#sites_linking_in(args) ⇒ Object
17 18 19 |
# File 'lib/awis/client.rb', line 17 def sites_linking_in(args) parse_response_with_request('SitesLinkingIn', args) end |
#traffic_history(args) ⇒ Object
13 14 15 |
# File 'lib/awis/client.rb', line 13 def traffic_history(args) parse_response_with_request('TrafficHistory', args) end |
#url_info(args) ⇒ Object
9 10 11 |
# File 'lib/awis/client.rb', line 9 def url_info(args) parse_response_with_request('UrlInfo', args) end |