Class: Artoo::Drivers::DeviceInfo

Inherits:
Driver
  • Object
show all
Defined in:
lib/artoo/drivers/device_info.rb

Overview

DeviceInfo driver behaviors

Constant Summary collapse

COMMANDS =
[:firmware_name, :version, :connect].freeze

Instance Attribute Summary

Attributes inherited from Driver

#additional_params, #parent

Instance Method Summary collapse

Methods inherited from Driver

#command, #commands, #connection, #event_topic_name, #initialize, #interval, #known_command?, #method_missing, #pin, #require_interface, #start_driver

Constructor Details

This class inherits a constructor from Artoo::Drivers::Driver

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Artoo::Drivers::Driver

Instance Method Details

#firmware_nameObject



9
10
11
# File 'lib/artoo/drivers/device_info.rb', line 9

def firmware_name
  connection.firmware_name
end

#versionObject



13
14
15
# File 'lib/artoo/drivers/device_info.rb', line 13

def version
  connection.version
end