class PageRankr::Socials::Google

Public Instance Methods

name() click to toggle source
# File lib/page_rankr/socials/google.rb, line 25
def name
  :socials_google
end
params() click to toggle source
# File lib/page_rankr/socials/google.rb, line 13
def params
  {:url => tracked_url}
end
regex() click to toggle source
# File lib/page_rankr/socials/google.rb, line 17
def regex
  /(\d+)/
end
supported_components() click to toggle source
# File lib/page_rankr/socials/google.rb, line 21
def supported_components
  [:subdomain, :path, :scheme]
end
url() click to toggle source
# File lib/page_rankr/socials/google.rb, line 8
def url
  # Yandex supplies Google +1 counts in a convenient matter without need for an API key
  'http://share.yandex.ru/gpp.xml'
end