The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package Vending::Command;
use strict;
use warnings;

use Vending;

class Vending::Command {
    is => 'Command',
    has => [
         machine_id => { default_value => 1 },
         machine    => { is => 'Vending::Machine', id_by => 'machine_id' },
    ],
};

#sub machine {
#    my $machine = Vending::Machine->get();
#    return $machine;
#}

1;