Subject: | BUILDARGS in WebService::Solr::Query prevents subclasses from working properly |
Consider this subclass:
package My::WebService::Solr::Query;
use Moose;
extends 'WebService::Solr::Query';
has localparams => ( is => 'ro', isa => 'Str', default => sub { '' } );
1;
This constructor call will pass localparams down into WebService::Solr::Query, where it gets taken as args to the query.
my $q = My::WebService::Solr::Query->new( localparams => 'foo' );
I talked to Dave Rolsky who said that the BUILDARGS isn't processing the arguments correctly. For now, I'm working around it by not passing localparams in the constructor to my subclass, and then setting it through a mutator.