Sha256: 00b1663bcb578399bfa59dbdb0aa5bf463a8c0a1de3810191ea6bf2e631813b6
Contents?: true
Size: 525 Bytes
Versions: 6
Compression:
Stored size: 525 Bytes
Contents
module MeducationSDK class BoardItem < Loquor::Resource self.path = "/board_items" def item @item ||= "MeducationSDK::#{item_type.gsub("::", "")}".constantize.find(item_id) end def board @board ||= Board.find(board_id) end def user @user ||= User.find(user_id) end end class BoardItemMock < BoardItem extend Loquor::ResourceMock self.attributes = { id: 1, board_id: 8, item_id: 5, item_type: "MediaFile", user_id: 14 } end end
Version data entries
6 entries across 6 versions & 1 rubygems