Sha256: 35bb3fdee5aa2799f927d214adcf0d7ce4e457b96da7b65e6fb9ceb14582a3e9

Contents?: true

Size: 421 Bytes

Versions: 9

Compression:

Stored size: 421 Bytes

Contents

module MeducationSDK
  class KnowledgeBankQuestion < Resource
    self.path = "/knowledge_bank_questions"

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

  class KnowledgeBankQuestionMock < KnowledgeBankQuestion
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      user_id: 12,
      title: "My great question",
      parsed_content: "More details about my question"
    }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
meducation_sdk-1.5.7 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-1.5.6 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-1.5.5 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-1.5.4 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-1.5.3 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-1.5.2 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-1.5.1 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-1.5.0 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-1.4.4 lib/meducation_sdk/resources/knowledge_bank_question.rb