Sha256: 36fd9ba47433dfaf019cf9354a6eeac8e25d17ea4d5b5235924c1daccefe11b5

Contents?: true

Size: 440 Bytes

Versions: 17

Compression:

Stored size: 440 Bytes

Contents

module ExCite
  # 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

17 entries across 17 versions & 1 rubygems

Version Path
ex_cite-2.1.0 app/models/ex_cite/citation.rb
ex_cite-2.0.0 app/models/ex_cite/citation.rb
ex_cite-2.0.0.pre.alpha.1 app/models/ex_cite/citation.rb
ex_cite-2.0.0.pre.alpha app/models/ex_cite/citation.rb
ex_cite-1.3.2 app/models/ex_cite/citation.rb
ex_cite-1.3.1 app/models/ex_cite/citation.rb
ex_cite-1.3.0 app/models/ex_cite/citation.rb
ex_cite-1.2.7 app/models/ex_cite/citation.rb
ex_cite-1.2.6 app/models/ex_cite/citation.rb
ex_cite-1.2.5 app/models/ex_cite/citation.rb
ex_cite-1.2.4 app/models/ex_cite/citation.rb
ex_cite-1.2.3 app/models/ex_cite/citation.rb
ex_cite-1.2.2 app/models/ex_cite/citation.rb
ex_cite-1.2.1 app/models/ex_cite/citation.rb
ex_cite-1.1.0 app/models/ex_cite/citation.rb
ex_cite-1.0.1 app/models/ex_cite/citation.rb
ex_cite-1.0.0 app/models/ex_cite/citation.rb