Class: HardCiter::Citation

Inherits:
Object
  • Object
show all
Defined in:
lib/hardciter/citation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, entry = nil, in_cite_text = nil) ⇒ Citation

Returns a new instance of Citation.



6
7
8
9
10
# File 'lib/hardciter/citation.rb', line 6

def initialize(key, entry = nil, in_cite_text = nil)
  @key = key
  @entry = entry
  @in_cite_text = in_cite_text
end

Instance Attribute Details

#bib_numberObject

Returns the value of attribute bib_number.



4
5
6
# File 'lib/hardciter/citation.rb', line 4

def bib_number
  @bib_number
end

#entryObject

Returns the value of attribute entry.



4
5
6
# File 'lib/hardciter/citation.rb', line 4

def entry
  @entry
end

#in_cite_textObject

Returns the value of attribute in_cite_text.



4
5
6
# File 'lib/hardciter/citation.rb', line 4

def in_cite_text
  @in_cite_text
end

#keyObject

Returns the value of attribute key.



4
5
6
# File 'lib/hardciter/citation.rb', line 4

def key
  @key
end