Class: Google::Scholar::AuthorSearch

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

Instance Attribute Summary

Attributes inherited from Base

#scraper

Instance Method Summary collapse

Methods inherited from Base

#initialize, search_author

Constructor Details

This class inherits a constructor from Google::Scholar::Base

Instance Method Details

#authorsObject



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

def authors
  return unless @scraper.documents.first.kind_of?(Google::Scholar::AuthorsDocument)
  @authors ||= Google::Scholar::AuthorEnumerator.new(@scraper)
end