Net::Async::Spotify::Object::Base - Base Package for Spotify Object Classes.
Base class to be used by all Autogenerated modules of Spotify Objects It does so by creating an accessor that goes by the name of each field in the object. It also applies type casting to passed values, making sure all types are matching. If an undefined field passed when creating, it will be populated in "extra_fields" Defined fields are specific to each Net::Async::Spotify::Object and can be viewed in class itself.
an internal function attached to every field accessor. Casting the value of each field depending on it's type. I believe this may not be the optimum way to do it. However for the time being I think it works great. Here are the available types that it checks for:
Integer
Float
String
Boolean
Timestamp
Net::Async::Spotify::Object
Array[Net::Async::Spotify::Object]
Special field, where it holds any undefined keys passed when creating.
Converts object into a hash rather than blessed object with methods.
return object as JSON encoded string
return object as readable string
To install Net::Async::Spotify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::Spotify
CPAN shell
perl -MCPAN -e shell install Net::Async::Spotify
For more information on module installation, please visit the detailed CPAN module installation guide.