Sha256: 1d9abed43e456197c2bdd021612c742a6eb6bfaf30a35b71874617f204d3d6e6

Contents?: true

Size: 477 Bytes

Versions: 24

Compression:

Stored size: 477 Bytes

Contents

module MeducationSDK
  class KnowledgeBankAnswer < Loquor::Resource
    self.path = "/knowledge_bank_answers"

    def question
      @question = KnowledgeBankQuestion.find(question_id)
    end

    def user
      @user = User.find(user_id)
    end
  end

  class KnowledgeBankAnswerMock < KnowledgeBankAnswer
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      question_id: 5,
      user_id: 12,
      parsed_content: "My great answer"
    }
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
meducation_sdk-1.4.3 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.4.2 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.4.1 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.4.0 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.3.0 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.2.6 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.2.5 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.2.4 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.2.3 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.2.2 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.2.1 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.2.0 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.1.2 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.1.1 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.1.0 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.0.0 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-0.10.1 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-0.10.0 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-0.9.0 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-0.8.0 lib/meducation_sdk/resources/knowledge_bank_answer.rb