Sha256: 75ea805acce08c82135d602d3a998705255dbd5c1b9ead75ec8279f79e8f90c6

Contents?: true

Size: 429 Bytes

Versions: 24

Compression:

Stored size: 429 Bytes

Contents

module MeducationSDK
  class KnowledgeBankQuestion < Loquor::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

24 entries across 24 versions & 1 rubygems

Version Path
meducation_sdk-0.7.0 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-0.6.1 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-0.6.0 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-0.5.0 lib/meducation_sdk/resources/knowledge_bank_question.rb