Sha256: c898af8e52867824f9ad54eb53a9f8c6dc4ecc067624428d990c49cc7aac822c
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
module MeducationSDK class View < Resource self.path = "/views" self.spi_type = "Item::View" def item @item ||= sdk_class_for(item_type).find(item_id) end def user @user ||= User.find(user_id) end end class ViewMock < View extend Loquor::ResourceMock self.attributes = { id: 1, user_id: 8, item_id: 5, item_type: "MediaFile" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
meducation_sdk-1.6.2 | lib/meducation_sdk/resources/view.rb |