Class: AVCapture::Session::Capture
- Inherits:
-
Object
- Object
- AVCapture::Session::Capture
- Defined in:
- lib/av_capture.rb
Instance Method Summary collapse
- #capture ⇒ Object
-
#initialize(output, connection) ⇒ Capture
constructor
A new instance of Capture.
Constructor Details
#initialize(output, connection) ⇒ Capture
Returns a new instance of Capture.
46 47 48 49 |
# File 'lib/av_capture.rb', line 46 def initialize output, connection @output = output @connection = connection end |
Instance Method Details
#capture ⇒ Object
51 52 53 |
# File 'lib/av_capture.rb', line 51 def capture @output.capture_on(@connection).data end |