Class: Relaton::Plateau::Hit

Inherits:
Object
  • Object
show all
Defined in:
lib/relaton/plateau/hit.rb

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Hit

Returns a new instance of Hit.



4
5
6
7
# File 'lib/relaton/plateau/hit.rb', line 4

def initialize(**args)
  @id = args[:id]
  @file = args[:file]
end

Instance Method Details

#bibitemObject



9
10
11
12
# File 'lib/relaton/plateau/hit.rb', line 9

def bibitem
  return @bibitem if defined? @bibitem
  @bibitem = fetch_doc
end