Class: Google::Scholar::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/google/scholar/base.rb

Direct Known Subclasses

AuthorSearch

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Base

Returns a new instance of Base.



5
6
7
8
# File 'lib/google/scholar/base.rb', line 5

def initialize(url)
  @scraper = Google::Scholar::Scraper.new(url)
  self
end

Instance Attribute Details

#scraperObject

Returns the value of attribute scraper.



4
5
6
# File 'lib/google/scholar/base.rb', line 4

def scraper
  @scraper
end

Class Method Details

.search_author(author) ⇒ Object



9
10
11
12
# File 'lib/google/scholar/base.rb', line 9

def self.search_author(author)
  url = Google::Scholar.author_search_url(author)
  Google::Scholar::AuthorSearch.new(url)
end