class Basecamp3::QuestionAnswer

A model for Basecamp's Question Answer

{github.com/basecamp/bc3-api/blob/master/sections/question_answers.md#question-answers For more information, see the official Basecamp3 API documentation for Question Answers}

Attributes

content[RW]
created_at[RW]
group_on[RW]
id[RW]
status[RW]
updated_at[RW]

Public Class Methods

all(bucket_id, parent_id, params = {}) click to toggle source

Returns a paginated list of answers.

@param [Hash] params additional parameters @option params [Integer] :page (optional) to paginate results

@return [Array<Basecamp3::QuestionAnswer>]

# File lib/basecamp3/models/question_answer.rb, line 22
def self.all(bucket_id, parent_id, params = {})
  Basecamp3.request.get("/buckets/#{bucket_id}/questions/#{parent_id}/answers", params, Basecamp3::QuestionAnswer)
end
find(bucket_id, id) click to toggle source

Returns the answer.

@param [Integer] bucket_id the id of the bucket @param [Integer] id the id of the question

@return [Basecamp3::QuestionAnswer]

# File lib/basecamp3/models/question_answer.rb, line 32
def self.find(bucket_id, id)
  Basecamp3.request.get("/buckets/#{bucket_id}/question_answers/#{id}", {}, Basecamp3::QuestionAnswer)
end