Class: Mandrill::Urls
- Inherits:
-
Object
- Object
- Mandrill::Urls
- Defined in:
- lib/mandrill/api.rb
Instance Attribute Summary collapse
-
#master ⇒ Object
Returns the value of attribute master.
Instance Method Summary collapse
-
#initialize(master) ⇒ Urls
constructor
A new instance of Urls.
-
#list ⇒ Array
Get the 100 most clicked URLs.
-
#search(q) ⇒ Array
Return the 100 most clicked URLs that match the search query given.
-
#time_series(url) ⇒ Array
Return the recent history (hourly stats for the last 30 days) for a url.
Constructor Details
#initialize(master) ⇒ Urls
Returns a new instance of Urls.
1446 1447 1448 |
# File 'lib/mandrill/api.rb', line 1446 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
1444 1445 1446 |
# File 'lib/mandrill/api.rb', line 1444 def master @master end |
Instance Method Details
#list ⇒ Array
Get the 100 most clicked URLs
1457 1458 1459 1460 |
# File 'lib/mandrill/api.rb', line 1457 def list() _params = {} return @master.call 'urls/list', _params end |
#search(q) ⇒ Array
Return the 100 most clicked URLs that match the search query given
1470 1471 1472 1473 |
# File 'lib/mandrill/api.rb', line 1470 def search(q) _params = {:q => q} return @master.call 'urls/search', _params end |
#time_series(url) ⇒ Array
Return the recent history (hourly stats for the last 30 days) for a url
1483 1484 1485 1486 |
# File 'lib/mandrill/api.rb', line 1483 def time_series(url) _params = {:url => url} return @master.call 'urls/time-series', _params end |