NAME
Astro::ADS::QTree - A class for the results of a Search Query Tree
VERSION
version 1.92
SYNOPSIS
my $search = Astro::ADS::Search->new(...);
my $result = $search->query_tree();
say $result->qtree;
$result->move_to( 'qtree.json' );
DESCRIPTION
The QTree class holds the response from an ADS search query tree. It will create attributes for the qtree and responseHeader OR it will hold the error returned by the UserAgent. If an error was returned, any calls to attribute methods will raise a polite warning that no fields will be available for that object.
Methods
move_to
This method takes advantage of the Mojo::Asset's move_to function to save the content to a file. Currently, it saves the whole body of the response, whereas the qtree value looks like it wants to be its own file, given the number of \n in the string.
See Also
COPYRIGHT AND LICENSE
This software is Copyright (c) 2025 by Boyd Duffee.
This is free software, licensed under:
The MIT (X11) License