class MockProgress
Public Class Methods
new(started, finished)
click to toggle source
# File lib/upload_progress/test/upload_progress_helper_testx.rb, line 11 def initialize(started, finished) @started, @finished = [started, finished] end
Public Instance Methods
finished?()
click to toggle source
# File lib/upload_progress/test/upload_progress_helper_testx.rb, line 19 def finished? @finished end
message()
click to toggle source
# File lib/upload_progress/test/upload_progress_helper_testx.rb, line 23 def message "A message" end
method_missing(meth, *args)
click to toggle source
# File lib/upload_progress/test/upload_progress_helper_testx.rb, line 27 def method_missing(meth, *args) # Just return some consitant number meth.to_s.hash.to_i.abs + args.hash.to_i.abs end
started?()
click to toggle source
# File lib/upload_progress/test/upload_progress_helper_testx.rb, line 15 def started? @started end