Class: Ralexa::Session
- Inherits:
-
Object
- Object
- Ralexa::Session
- Defined in:
- lib/ralexa/session.rb
Instance Method Summary collapse
-
#initialize(access_key_id, secret_access_key) ⇒ Session
constructor
A new instance of Session.
-
#top_sites ⇒ Object
Provides a TopSites instance with an authenticated client.
-
#url_info ⇒ Object
Provides a UrlInfo instance with an authenticated client.
Constructor Details
#initialize(access_key_id, secret_access_key) ⇒ Session
Returns a new instance of Session.
4 5 6 |
# File 'lib/ralexa/session.rb', line 4 def initialize(access_key_id, secret_access_key) @client = Client.new(access_key_id, secret_access_key) end |
Instance Method Details
#top_sites ⇒ Object
Provides a TopSites instance with an authenticated client. See: docs.amazonwebservices.com/AlexaTopSites/latest/index.html
10 11 12 |
# File 'lib/ralexa/session.rb', line 10 def top_sites TopSites.new(@client) end |
#url_info ⇒ Object
Provides a UrlInfo instance with an authenticated client. See: docs.amazonwebservices.com/AlexaWebInfoService/latest
16 17 18 |
# File 'lib/ralexa/session.rb', line 16 def url_info UrlInfo.new(@client) end |