Sha256: 7e950d41b227fae7bc53f7f6f1321ca25f727dbb7ff984fc6e15c679deb9866e

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

module CiteroEngine
  # Citation class, holds data from format and/or resource key
  class Citation
    extend ActsAsCitable
    include ResourceKey
    # Required fields
    attr_accessor :data, :from_format
    acts_as_citable do |c|
      c.format_field = :from_format
    end
    def initialize args = {}
      self.data = args[:data]
      self.from_format = args[:from_format]
      self.resource_key = args[:resource_key]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citero_engine-3.0.0.beta app/models/citero_engine/citation.rb
citero_engine-3.0.0.alpha3 app/models/citero_engine/citation.rb
citero_engine-3.0.0.alpha2 app/models/citero_engine/citation.rb
citero_engine-3.0.0.alpha app/models/citero_engine/citation.rb