Class: UVC::UVCDevice::Info
- Inherits:
-
Object
- Object
- UVC::UVCDevice::Info
- Defined in:
- lib/uvc.rb
Instance Attribute Summary collapse
-
#asynchronous_control ⇒ Object
readonly
Returns the value of attribute asynchronous_control.
-
#autoupdate_control ⇒ Object
readonly
Returns the value of attribute autoupdate_control.
-
#disabled_due_to_automatic_mode ⇒ Object
readonly
Returns the value of attribute disabled_due_to_automatic_mode.
-
#disabled_due_to_incompatibility_with_commit_state ⇒ Object
readonly
Returns the value of attribute disabled_due_to_incompatibility_with_commit_state.
-
#supports_get ⇒ Object
readonly
Returns the value of attribute supports_get.
-
#supports_set ⇒ Object
readonly
Returns the value of attribute supports_set.
Instance Method Summary collapse
-
#initialize(bits) ⇒ Info
constructor
A new instance of Info.
Constructor Details
#initialize(bits) ⇒ Info
Returns a new instance of Info.
792 793 794 795 796 797 798 799 800 |
# File 'lib/uvc.rb', line 792 def initialize(bits) bits = bits.reverse.split(//).map {|c| c == "1" } @supports_get = bits[0] @supports_set = bits[1] @disabled_due_to_automatic_mode = bits[2] @autoupdate_control = bits[3] @asynchronous_control = bits[4] @disabled_due_to_incompatibility_with_commit_state = bits[5] end |
Instance Attribute Details
#asynchronous_control ⇒ Object (readonly)
Returns the value of attribute asynchronous_control.
789 790 791 |
# File 'lib/uvc.rb', line 789 def asynchronous_control @asynchronous_control end |
#autoupdate_control ⇒ Object (readonly)
Returns the value of attribute autoupdate_control.
788 789 790 |
# File 'lib/uvc.rb', line 788 def autoupdate_control @autoupdate_control end |
#disabled_due_to_automatic_mode ⇒ Object (readonly)
Returns the value of attribute disabled_due_to_automatic_mode.
787 788 789 |
# File 'lib/uvc.rb', line 787 def disabled_due_to_automatic_mode @disabled_due_to_automatic_mode end |
#disabled_due_to_incompatibility_with_commit_state ⇒ Object (readonly)
Returns the value of attribute disabled_due_to_incompatibility_with_commit_state.
790 791 792 |
# File 'lib/uvc.rb', line 790 def disabled_due_to_incompatibility_with_commit_state @disabled_due_to_incompatibility_with_commit_state end |
#supports_get ⇒ Object (readonly)
Returns the value of attribute supports_get.
785 786 787 |
# File 'lib/uvc.rb', line 785 def supports_get @supports_get end |
#supports_set ⇒ Object (readonly)
Returns the value of attribute supports_set.
786 787 788 |
# File 'lib/uvc.rb', line 786 def supports_set @supports_set end |