package WWW::KrispyKreme::HotLight;
use Mojo::Base -base;
use Mojo::UserAgent;
use Mojo::JSON ();
our $VERSION = '1.1';
has 'where';
has locations => \&_build_locations;
sub _build_locations {
search => Mojo::JSON::encode_json($search),
};
my $json = $ua->get(
$hotlight_url => $header => form => $form,
)->res->json;
[map $_->{Location}, @$json];
}
1;
__END__
=