| 1 | package DBGp::Client::Response::Eval; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use parent qw(DBGp::Client::Response::Simple); | ||
| 6 | |||
| 7 | use DBGp::Client::Response::Property; | ||
| 8 | |||
| 9 | __PACKAGE__->make_attrib_accessors(qw( | ||
| 10 | transaction_id command success | ||
| 11 | )); | ||
| 12 | |||
| 13 | sub result { | ||
| 14 | my $property = DBGp::Client::Parser::_node($_[0], 'property'); | ||
| 15 | |||
| 16 | return undef unless defined $property; | ||
| 17 | return bless $property, 'DBGp::Client::Response::Property'; | ||
| 18 | } | ||
| 19 | |||
| 20 | 1; |