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.
3 4 5 |
# File 'lib/awis/client.rb', line 3 def initialize raise CertificateError.new("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
19 20 21 |
# File 'lib/awis/client.rb', line 19 def category_browse(args) parse_response_with_request("CategoryBrowse", args) end |
#category_listings(args) ⇒ Object
23 24 25 |
# File 'lib/awis/client.rb', line 23 def category_listings(args) parse_response_with_request("CategoryListings", args) end |
#sites_linking_in(args) ⇒ Object
15 16 17 |
# File 'lib/awis/client.rb', line 15 def sites_linking_in(args) parse_response_with_request("SitesLinkingIn", args) end |
#traffic_history(args) ⇒ Object
11 12 13 |
# File 'lib/awis/client.rb', line 11 def traffic_history(args) parse_response_with_request("TrafficHistory", args) end |
#url_info(args) ⇒ Object
7 8 9 |
# File 'lib/awis/client.rb', line 7 def url_info(args) parse_response_with_request("UrlInfo", args) end |