def to_hash
      hash = {}

      instance_variables.each do |v|
        hash[v.to_s[1..-1].to_sym] = instance_variable_get(v)
      end

      hash
    end
def to_hash
      hash = {}

      instance_variables.each do |v|
        hash[v.to_s[1..-1].to_sym] = instance_variable_get(v)
      end

      hash
    end
Creates a new Citation from the given attributes.

 ==== Attributes

 * +options+ - The attributes of the Citation.

 ==== Options

 * +:type+ - Not optional. The type of source you are citing.
 * +:contributors+ - An array of hashes of contributors.

 ==== Examples

   citation = Scholar::Citation.new({
     :type => :book,
     :title => "Foobar",
     :contributors => [
       {
         :role => :author,
         :first => "John",
         :last => "Sample"
       }
     ]
   })

 Obviously, you'd include more than that, but you need to see the
 specific sources for more documentation.
 Returns the Citation object in Hash form.