Class: PageRankr::Socials::Google

Inherits:
Object
  • Object
show all
Includes:
PageRankr::Social
Defined in:
lib/page_rankr/socials/google.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



25
26
27
# File 'lib/page_rankr/socials/google.rb', line 25

def name
  :socials_google
end

#paramsObject



13
14
15
# File 'lib/page_rankr/socials/google.rb', line 13

def params
  {:url => tracked_url}
end

#regexObject



17
18
19
# File 'lib/page_rankr/socials/google.rb', line 17

def regex
  /(\d+)/
end

#supported_componentsObject



21
22
23
# File 'lib/page_rankr/socials/google.rb', line 21

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

#urlObject



8
9
10
11
# 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