Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 studying the Monastery: (10)
As of 2015-07-07 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls