Class: HardCiter::Citation
- Inherits:
-
Object
- Object
- HardCiter::Citation
- Defined in:
- lib/hardciter/citation.rb
Instance Attribute Summary collapse
-
#bib_number ⇒ Object
Returns the value of attribute bib_number.
-
#entry ⇒ Object
Returns the value of attribute entry.
-
#in_cite_text ⇒ Object
Returns the value of attribute in_cite_text.
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, entry = nil, in_cite_text = nil) ⇒ Citation
constructor
A new instance of Citation.
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_number ⇒ Object
Returns the value of attribute bib_number.
4 5 6 |
# File 'lib/hardciter/citation.rb', line 4 def bib_number @bib_number end |
#entry ⇒ Object
Returns the value of attribute entry.
4 5 6 |
# File 'lib/hardciter/citation.rb', line 4 def entry @entry end |
#in_cite_text ⇒ Object
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 |
#key ⇒ Object
Returns the value of attribute key.
4 5 6 |
# File 'lib/hardciter/citation.rb', line 4 def key @key end |