Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: New module review: KalturaAPI

by jeffa (Bishop)
on Oct 05, 2015 at 17:12 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1143838]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-03-29 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found