Sha256: f74a10c9dab0925b5666d876e61e1122f86de39201ed7bf8635044284c4d8ba9
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
module MeducationSDK class Board < Resource self.path = "/boards" def owner @owner ||= class_for(owner_type).find(owner_id) end def created_by @created_by ||= User.find(created_by_id) end end class BoardMock < Board extend Loquor::ResourceMock self.attributes = { id: 1, created_by_id: 8, owner_id: 5, owner_type: "Group", name: "Greatest Board", description: "This is the greatest board ever!!" } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meducation_sdk-1.5.0 | lib/meducation_sdk/resources/board.rb |
meducation_sdk-1.4.4 | lib/meducation_sdk/resources/board.rb |