Class: Artoo::Adaptors::Opencv
- Inherits:
-
Adaptor
- Object
- Adaptor
- Artoo::Adaptors::Opencv
- Defined in:
- lib/artoo/adaptors/opencv.rb
Overview
Connect to a opencv device
Instance Attribute Summary collapse
-
#device ⇒ Object
readonly
Returns the value of attribute device.
Instance Method Summary collapse
-
#connect ⇒ Boolean
Creates a connection with device.
-
#disconnect ⇒ Boolean
Closes connection with device.
-
#method_missing(method_name, *arguments, &block) ⇒ Object
Uses method missing to call device actions.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *arguments, &block) ⇒ Object
Uses method missing to call device actions
24 25 26 |
# File 'lib/artoo/adaptors/opencv.rb', line 24 def method_missing(method_name, *arguments, &block) device.send(method_name, *arguments, &block) end |
Instance Attribute Details
#device ⇒ Object (readonly)
Returns the value of attribute device.
8 9 10 |
# File 'lib/artoo/adaptors/opencv.rb', line 8 def device @device end |
Instance Method Details
#connect ⇒ Boolean
Creates a connection with device
12 13 14 |
# File 'lib/artoo/adaptors/opencv.rb', line 12 def connect super end |
#disconnect ⇒ Boolean
Closes connection with device
18 19 20 |
# File 'lib/artoo/adaptors/opencv.rb', line 18 def disconnect super end |