SPVM::ExchangeAPI::Class - Class Object
SPVM::BlessedObject::Class is a class object to call class methods.
SPVM::BlessedObject::Class
# The same as the Int->__new(1) in SPVM language my $class = SPVM::ExchangeAPI::Class->__new(__class_name => 'Int', __api => $api); my $value = $class->new(1);
Create a class object using the SPVM::ExchangeAPI method in the SPVM::ExchangeAPI class:
my $class = $api->class('Int'); $class->new(1);
my $__class_name = $self->__class_name; $self->__class_name($__class_name);
Gets and sets a class name.
my $api = $self->__api; $self->__api($api);
Gets and sets a SPVM::ExchangeAPI object.
my $class = SPVM::ExchangeAPI::Class->__new(%options);
Creates a new SPVM::ExchangeAPI::Class object.
SPVM::ExchangeAPI::Class
Options:
__class_name : string
__class_name
A class name
__api : SPVM::ExchangeAPI
__api
A SPVM::ExchangeAPI object
$class->foo(@args);
Calls call_method method in the SPVM::ExchangeAPI class using the "__class_name" field and the method name given in the AUTOLOAD method.
AUTOLOAD
Copyright (c) 2023 Yuki Kimoto
MIT License
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM
CPAN shell
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.