Class: VCSRuby::MockCapturer
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Capturer
create, #format, #format=, #format_extension, initialize_capturers
Constructor Details
Returns a new instance of MockCapturer.
12
13
14
15
16
17
|
# File 'lib/MockCap/mock_capturer.rb', line 12
def initialize video
@video = video
@info = nil
@video_streams = nil
@audio_streams = nil
end
|
Instance Attribute Details
#audio_streams ⇒ Object
Returns the value of attribute audio_streams.
10
11
12
|
# File 'lib/MockCap/mock_capturer.rb', line 10
def audio_streams
@audio_streams
end
|
#info ⇒ Object
Returns the value of attribute info.
10
11
12
|
# File 'lib/MockCap/mock_capturer.rb', line 10
def info
@info
end
|
#video_streams ⇒ Object
Returns the value of attribute video_streams.
10
11
12
|
# File 'lib/MockCap/mock_capturer.rb', line 10
def video_streams
@video_streams
end
|
Instance Method Details
#available? ⇒ Boolean
27
28
29
|
# File 'lib/MockCap/mock_capturer.rb', line 27
def available?
true
end
|
34
35
36
|
# File 'lib/MockCap/mock_capturer.rb', line 34
def available_formats
['png', 'tiff', 'bmp', 'mjpeg']
end
|
#file_valid? ⇒ Boolean
19
20
21
|
# File 'lib/MockCap/mock_capturer.rb', line 19
def file_valid?
true
end
|
#grab(time, image_path) ⇒ Object
31
32
|
# File 'lib/MockCap/mock_capturer.rb', line 31
def grab time, image_path
end
|
#name ⇒ Object
23
24
25
|
# File 'lib/MockCap/mock_capturer.rb', line 23
def name
:mock
end
|
#to_s ⇒ Object
38
39
40
|
# File 'lib/MockCap/mock_capturer.rb', line 38
def to_s
"Mock 1.0"
end
|