Class: Rubycam::CLI::Commands::Info

Inherits:
VideoCommand
  • Object
show all
Defined in:
lib/rubycam/cli.rb

Instance Method Summary collapse

Instance Method Details

#call(**options) ⇒ Object



81
82
83
84
85
86
# File 'lib/rubycam/cli.rb', line 81

def call(**options)
  with_device(options) do |dev|
    { path: dev.path, driver: dev.driver, card: dev.card,
      bus: dev.bus_info }.each { |k, v| puts format('%-8s %s', "#{k}:", v) }
  end
end