Sha256: 914c335b9f2cf1b16e4e522d77bcff14c1ee953b074bf42417bcf723b2b69ae3

Contents?: true

Size: 916 Bytes

Versions: 2

Compression:

Stored size: 916 Bytes

Contents

require "google/scholar/version"
require "google/scholar/base"
require "google/scholar/scraper"
require "google/scholar/document"
require "google/scholar/author"
require "google/scholar/author_search"
require "google/scholar/author_enumerator"
require "google/scholar/article_summary"
require "google/scholar/article_enumerator"
require "google/scholar/document/authors_document"
require "google/scholar/document/authors_profile_document"
require 'cgi'
module Google
  module Scholar
    def self.google_root
      "scholar.google.com"
    end
    def self.http_scheme
      "http://"
    end
    def self.google_url
      "#{self.http_scheme}#{self.google_root}"
    end
    # @TODO May want to move this to AuthorSearch.
    def self.author_search_url(author)
      "#{self.http_scheme}#{self.google_root}/citations?view_op=search_authors&hl=en&mauthors=#{::CGI::escape("author:\"#{author}\"")}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
google-scholar-0.0.2 lib/google/scholar.rb
google-scholar-0.0.1 lib/google/scholar.rb