Class: PageRankr::Socials::Pinterest
- Inherits:
-
Object
- Object
- PageRankr::Socials::Pinterest
show all
- Includes:
- PageRankr::Social
- Defined in:
- lib/page_rankr/socials/pinterest.rb
Instance Attribute Summary
Attributes included from Tracker
#body, #raw, #tracked
Instance Method Summary
collapse
Methods included from Tracker
#clean, #content, #initialize, #method, #proxy, #run, #tracked_url
Instance Method Details
#name ⇒ Object
24
25
26
|
# File 'lib/page_rankr/socials/pinterest.rb', line 24
def name
:socials_pinterest
end
|
#params ⇒ Object
12
13
14
|
# File 'lib/page_rankr/socials/pinterest.rb', line 12
def params
{:url => tracked_url, :callback => '_'}
end
|
#regex ⇒ Object
16
17
18
|
# File 'lib/page_rankr/socials/pinterest.rb', line 16
def regex
/(\d+)/
end
|
#supported_components ⇒ Object
20
21
22
|
# File 'lib/page_rankr/socials/pinterest.rb', line 20
def supported_components
[:subdomain, :path, :scheme]
end
|
#url ⇒ Object
8
9
10
|
# File 'lib/page_rankr/socials/pinterest.rb', line 8
def url
'http://api.pinterest.com/v1/urls/count.json'
end
|