Class: ExCite::Citation
- Inherits:
-
Object
- Object
- ExCite::Citation
- Extended by:
- ActsAsCitable
- Includes:
- ResourceKey
- Defined in:
- app/models/ex_cite/citation.rb
Overview
Citation class, holds data from format and/or resource key
Instance Attribute Summary collapse
-
#data ⇒ Object
Required fields.
-
#from_format ⇒ Object
Required fields.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Citation
constructor
A new instance of Citation.
Methods included from ResourceKey
Constructor Details
#initialize(args = {}) ⇒ Citation
Returns a new instance of Citation.
11 12 13 14 15 |
# File 'app/models/ex_cite/citation.rb', line 11 def initialize args = {} self.data = args[:data] self.from_format = args[:from_format] self.resource_key = args[:resource_key] end |
Instance Attribute Details
#data ⇒ Object
Required fields
7 8 9 |
# File 'app/models/ex_cite/citation.rb', line 7 def data @data end |
#from_format ⇒ Object
Required fields
7 8 9 |
# File 'app/models/ex_cite/citation.rb', line 7 def from_format @from_format end |