Next Pigs in Space 30

Other stuff that is GOOD: Web RPC APIs

        sub current_balance {
           ...
           return $current_balance;
        }
        use Stick::Publisher;
        use Stick::Publisher::Publish;
        with ('Stick::Role::Routable::AutoInstance');
        publish current_balance => sub {
           ...
           return $current_balance;
        };
        publish terminate_as_of => {
          -http_method => 'post',
          -path        => 'terminate',
          term_date    => 'Moonpig::DateTime',
        } => sub {
           my ($self, $arg) = @_;
           $self->set_termination_date($arg->{term_date});
           ...
        };

Next Copyright © 2013 M. J. Dominus