Skip to content

Commit

Permalink
Added some docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dave committed Oct 26, 2010
1 parent 6103027 commit ebc1061
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/enigmamachine/models/video.rb
Expand Up @@ -131,6 +131,8 @@ def check_file
return true
end

# Returns true unless the video's file starts with 'http://'
#
def set_initial_state
if local?
self.state = "unencoded"
Expand Down Expand Up @@ -200,6 +202,8 @@ def do_download
# TODO: download code goes here
end

# Returns false if the video is available via http
#
def local?
return false if self.file =~ /^http:\/\//
return true
Expand Down

0 comments on commit ebc1061

Please sign in to comment.