Permalink
Browse files

Video thumbnail support.

  • Loading branch information...
1 parent 8cfd1e1 commit c2ed0ad6fe36ecbe6ac490fe2702d1a695fc2dde @dana11235 dana11235 committed Jan 4, 2013
Showing with 8 additions and 2 deletions.
  1. +8 −2 lib/mls/models/video.rb
View
@@ -2,11 +2,17 @@ class MLS::Video < MLS::Resource
property :id, Fixnum
property :vts_key, String
property :video_type, String
- property :subject_type, String
+ property :subject_type, String, :serialize => false
property :created_at, DateTime, :serialize => :if_present
property :updated_at, DateTime, :serialize => :if_present
+
+ property :photo_id, Fixnum, :serialize => :if_present
+
+ attr_accessor :photo
end
class MLS::Video::Parser < MLS::Parser
-
+ def photo=(photo)
+ @object.photo = MLS::Photo::Parser.build(photo)
+ end
end

0 comments on commit c2ed0ad

Please sign in to comment.