class Artoo::Interfaces::Interface
The Interface
class is the base class used to implement behavior for a specific category of robot. Examples would be a Rover
or Copter.
Derive a class from this class, in order to implement higher-order behavior for a new category of robot.
Constants
- COMMANDS
Attributes
device[RW]
name[RW]
robot[RW]
Public Class Methods
new(params={})
click to toggle source
Create new interface @param [Hash] params @option params [Object] :robot @option params [Object] :device
# File lib/artoo/interfaces/interface.rb, line 25 def initialize(params={}) @name = params[:name] @robot = params[:robot] @device = params[:device] end
Public Instance Methods
commands()
click to toggle source
@return [Collection] commands
# File lib/artoo/interfaces/interface.rb, line 32 def commands self.class.const_get('COMMANDS') end
interface_type()
click to toggle source
# File lib/artoo/interfaces/interface.rb, line 15 def interface_type :raw end