Sha256: 4bf9bea8f1bfbe1f03a071870ae2b55afd8346aaecb3b4a79dae77a504e79540
Contents?: true
Size: 600 Bytes
Versions: 7
Compression:
Stored size: 600 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 def items @items ||= BoardItem.where(board_id: self.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!!", created_at: "2013-04-20" } end end
Version data entries
7 entries across 7 versions & 1 rubygems