Sha256: caf6496cdf6bf73c863821a1bac79231e15c614d2f3a8d261699df815a7fe281
Contents?: true
Size: 852 Bytes
Versions: 13
Compression:
Stored size: 852 Bytes
Contents
module MeducationSDK class MediaFile < Loquor::Resource self.path = "/media_files" def user @user ||= User.find(user_id) end def comments @comments ||= Comment.where(item_id: id, item_type: "MediaFile") end module State def self.uploaded; 1 end def self.processing; 2 end def self.available; 3 end def self.redacted; 4 end end end class MediaFileMock < MediaFile extend Loquor::ResourceMock self.attributes = { id: 1, user_id: 1, media_type_id: 2, media_type: "video", title: "Abdominal Ultrasound Tutorial", preview_image_url: "http://www.example.com/1.jpg", mesh_headings: [{id: 1, name: "cardiology"}], rating: 10, views_in_last_30_days: 30, views_in_last_60_days: 60, usefulness: 1 } end end
Version data entries
13 entries across 13 versions & 1 rubygems