| 1 | package DBGp::Client::Response::FeatureGet; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use parent qw(DBGp::Client::Response::Simple); | ||
| 6 | |||
| 7 | __PACKAGE__->make_attrib_accessors(qw( | ||
| 8 | transaction_id command supported | ||
| 9 | )); | ||
| 10 | |||
| 11 | sub feature { | ||
| 12 | defined $_[0]->{attrib}{feature} ? $_[0]->{attrib}{feature} : | ||
| 13 | $_[0]->{attrib}{feature_name} | ||
| 14 | } | ||
| 15 | |||
| 16 | sub value { | ||
| 17 | return DBGp::Client::Parser::_text($_[0]) | ||
| 18 | } | ||
| 19 | |||
| 20 | 1; |