Sha256: 41644e88574f41cdf462094eaf38ff4d43ab905d300c767a17f45167d3043634

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 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
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
meducation_sdk-0.4.1 lib/meducation_sdk/resources/knowledge_bank_question.rb
meducation_sdk-0.4.0 lib/meducation_sdk/resources/knowledge_bank_question.rb