Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Declarative Objects

by einhverfr (Friar)
on Feb 27, 2014 at 14:29 UTC ( #1076401=CUFP: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package LedgerSMB::Currency;
    use Moose;
    with 'LedgerSMB::PGOSimple::Role', 'LedgerSMB::MooseTypes';
    ...
    dbmethod get_by_id =>  (funcname => 'get_by_id', returns_objects => 1,
                            arg_list => ['id']);
    __PACKAGE__->meta->make_immutable;
    
  2. or download this
    my $usd = LedgerSMB::Currency->get('USD');
    
    ...
    $usd->{allowed_variance} = 0.2;
    
    $usd->save;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://1076401]
Approved by Corion
Front-paged by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2016-08-24 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (341 votes). Check out past polls.