jchris (owner)

Fork Of

Revisions

gist: 14280 Download_button fork
public
Public Clone URL: git://gist.github.com/14280.git
Embed All Files: show embed
Text #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Question
  
  include CouchRest::Model
  key_accessors :type, :position, :text, :required_answers_count, :possible_answers, :hint
 
  def initialize (node = {})
    @doc = node
  end
  
  def to_json
    @doc.to_json
  end
 
end