Class: PageRankr::Socials::Pinterest

Inherits:
Object
  • Object
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

#nameObject



24
25
26
# File 'lib/page_rankr/socials/pinterest.rb', line 24

def name
  :socials_pinterest
end

#paramsObject



12
13
14
# File 'lib/page_rankr/socials/pinterest.rb', line 12

def params
  {:url => tracked_url, :callback => '_'}
end

#regexObject



16
17
18
# File 'lib/page_rankr/socials/pinterest.rb', line 16

def regex
  /(\d+)/
end

#supported_componentsObject



20
21
22
# File 'lib/page_rankr/socials/pinterest.rb', line 20

def supported_components
  [:subdomain, :path, :scheme]
end

#urlObject



8
9
10
# File 'lib/page_rankr/socials/pinterest.rb', line 8

def url
  'http://api.pinterest.com/v1/urls/count.json'
end