class GScholar::Citation

Attributes

bibtex[R]
id[R]
to_s[R]

Public Class Methods

new(id) click to toggle source
# File lib/gscholar/citation.rb, line 37
def initialize(id)
  @id = id
  @bibtex = Utils::LazyProxy.new { Utils.fetch(bibtex_url).body }
end

Private Instance Methods

bibtex_url() click to toggle source
# File lib/gscholar/citation.rb, line 43
def bibtex_url
  "http://scholar.google.com/scholar.bib?q=info:#{@id}:scholar.google.com/&output=citation"
end