Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: New module review: KalturaAPI

by jeffa (Bishop)
on Oct 05, 2015 at 17:12 UTC ( #1143838=note: print w/replies, xml ) Need Help??


in reply to New module review: KalturaAPI

Why not simplify the constructor to only worried about defaults and handling more complex assignments on behalf of the client:

sub new { my ($class, $params) = @_; $params->{sessionType} = $KalturaAPI::SESSION_TYPE{lc($params->{se +ssionType})}; $params->{format} ||= 'xml'; return bless $params, $class; }

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1143838]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2019-05-27 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (156 votes). Check out past polls.

    Notices?