Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Declarative Objects

by einhverfr (Friar)
on Feb 27, 2014 at 14:29 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found