Method: Podio::Question.create

Defined in:
lib/podio/models/question.rb

.create(ref_type, ref_id, text, options) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/podio/models/question.rb', line 14

def create(ref_type, ref_id, text, options)
  response = Podio.connection.post do |req|
    req.url "/question/#{ref_type}/#{ref_id}/"
    req.body = {:text => text, :options => options }
  end
  member response.body
end