Sha256: 19067a2c28b47083d10d053af6b5ab5438cc819b535621cf24626a407d43cbfb
Contents?: true
Size: 421 Bytes
Versions: 5
Compression:
Stored size: 421 Bytes
Contents
module MeducationSDK class DashboardItem < Resource self.path = "/dashboard_items" def user @user ||= User.find(user_id) end def item @item ||= class_for(item_type).find(item_id) end end class DashboardItemMock < DashboardItem extend Loquor::ResourceMock self.attributes = { id: 1, user_id: 20, item_type: "MediaFile", item_id: 17 } end end
Version data entries
5 entries across 5 versions & 1 rubygems