Class: VCSRuby::MockCapturer

Inherits:
Capturer show all
Defined in:
lib/MockCap/mock_capturer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Capturer

create, #format, #format=, #format_extension, initialize_capturers

Constructor Details

#initialize(video) ⇒ MockCapturer

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_streamsObject (readonly)

Returns the value of attribute audio_streams.



10
11
12
# File 'lib/MockCap/mock_capturer.rb', line 10

def audio_streams
  @audio_streams
end

#infoObject (readonly)

Returns the value of attribute info.



10
11
12
# File 'lib/MockCap/mock_capturer.rb', line 10

def info
  @info
end

#video_streamsObject (readonly)

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

Returns:

  • (Boolean)


27
28
29
# File 'lib/MockCap/mock_capturer.rb', line 27

def available?
  true
end

#available_formatsObject



34
35
36
# File 'lib/MockCap/mock_capturer.rb', line 34

def available_formats
  ['png', 'tiff', 'bmp', 'mjpeg']
end

#file_valid?Boolean

Returns:

  • (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

#nameObject



23
24
25
# File 'lib/MockCap/mock_capturer.rb', line 23

def name
  :mock
end

#to_sObject



38
39
40
# File 'lib/MockCap/mock_capturer.rb', line 38

def to_s
  "Mock 1.0"
end