Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Declarative Objects

by einhverfr (Pilgrim)
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 contemplating the Monastery: (6)
As of 2014-12-21 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (101 votes), past polls