class OpenTrons::Command

Attributes

command[RW]
params[RW]

Public Class Methods

new(command, params) click to toggle source

parent class for all the comands

# File lib/opentrons/commands.rb, line 28
def initialize(command, params)
        @command = command
        @params = params
end

Public Instance Methods

inspect() click to toggle source
# File lib/opentrons/commands.rb, line 44
def inspect
        to_s
end
to_hash() click to toggle source
# File lib/opentrons/commands.rb, line 33
def to_hash
        as_hash = {}
        as_hash["command"] = command
        as_hash["params"] = params
        return as_hash
end
to_s() click to toggle source
# File lib/opentrons/commands.rb, line 40
def to_s
        "<OpenTrons::Command:0x#{self.__id__.to_s(16)}>"
end