lib/page_rankr.rb in PageRankr-4.3.0 vs lib/page_rankr.rb in PageRankr-4.4.0
- old
+ new
@@ -1,9 +1,10 @@
require File.expand_path("../page_rankr/backlinks", __FILE__)
require File.expand_path("../page_rankr/ranks", __FILE__)
require File.expand_path("../page_rankr/indexes", __FILE__)
require File.expand_path("../page_rankr/proxy_services", __FILE__)
+require File.expand_path("../page_rankr/socials", __FILE__)
module PageRankr
class MethodRequired < StandardError; end
class DomainInvalid < StandardError; end
class SupportedComponentsInvalid < StandardError; end
@@ -34,8 +35,17 @@
end
alias_method :index, :indexes
def index_trackers
Indexes.new.index_trackers
+ end
+
+ def socials(site, *social_trackers)
+ Socials.new.lookup(Site.new(site), *social_trackers)
+ end
+ alias_method :social, :socials
+
+ def social_trackers
+ Socials.new.social_trackers
end
end
end
\ No newline at end of file