class OpinionType
  def self.types
    ['believes', 'disbelieves', 'doubts']
  end
end

module OpinionType
  def self.types
    ['believes', 'disbelieves', 'doubts']
  end
end

Use module instead of class
Use module instead of class
