class OpenTrons::Commands

Attributes

command_list[RW]
protocol[RW]

Public Class Methods

new(protocol) click to toggle source
# File lib/opentrons/commands.rb, line 5
def initialize(protocol)
        @protocol = protocol
        @command_list = []
end

Public Instance Methods

inspect() click to toggle source
# File lib/opentrons/commands.rb, line 19
def inspect
        to_s
end
to_list() click to toggle source

return a pure list of hashes

# File lib/opentrons/commands.rb, line 11
def to_list
        return command_list.map {|command| command.to_hash}
end
to_s() click to toggle source
# File lib/opentrons/commands.rb, line 15
def to_s
        "<OpenTrons::Commands:0x#{self.__id__.to_s(16)}>"
end