Sha256: 34a4222c05318e68a96ae2e7c366d51c6786e45497d851a70c79ce9f14f66127

Contents?: true

Size: 469 Bytes

Versions: 37

Compression:

Stored size: 469 Bytes

Contents

module MeducationSDK
  class KnowledgeBankAnswer < 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

37 entries across 37 versions & 1 rubygems

Version Path
meducation_sdk-2.2.2 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.2.1 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.2.0 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.1.4 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.1.3 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.1.2 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.1.1 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.1.0 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.0.5 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.0.4 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.0.3 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.0.2 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.0.1 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-2.0.0 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.6.16 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.6.15 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.6.14 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.6.13 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.6.12 lib/meducation_sdk/resources/knowledge_bank_answer.rb
meducation_sdk-1.6.11 lib/meducation_sdk/resources/knowledge_bank_answer.rb