NAME
Web::Dash::DeeModel - remote Dee Model object
VERSION
0.031
DESCRIPTION
Web::Dash::DeeModel represents the remote Dee Model object on DBus.
This module is not meant for end users. Use Web::Dash::Lens instead.
CLASS METHODS
$model = Web::Dash::DeeModel->new(%args)
The constructor.
Fields in %args
are:
bus
=> Net::DBus bus object (mandatory)-
The DBus bus to be used.
service_name
=> STR (mandatory)-
The DBus service name for the Dee Model. Its DBus object name is automatically generated by the service name.
schema
=> HASHREF (mandatory)-
The schema of the Dee Model.
schema
is a hash-ref. Its key is an integer, which is a column index of the raw Dee Model. Its value is a string, which is the name for the column.
OBJECT METHODS
$future = $model->get([$exp_seqnum])
Returns a Future::Q object that represents the current values of the $model
.
If $exp_seqnum
is specified, the seqnum of obtained values will be checked. If the current seqnum is not equal to $exp_seqnum
, $future
will be rejected.
In success, $future
will be fulfilled with the current values of the $model
. They are a list of hash-refs transformed by the schema specified in new()
.
In failure, $future
will be rejected.
AUTHOR
Toshio Ito <toshioito [at] cpan.org>