NAME
WebFetch::Data::Record - WebFetch Embedding API data record
VERSION
version 0.15.9
SYNOPSIS
use WebFetch::Data::Record;
WebFetch::Data::Record-
mk_field_accessor( $field_name, ... ); $value = $obj->bynum( $num ); $value = $obj->fieldname; $obj->fieldname( $value ); >
DESCRIPTION
This module provides read-only access to a single record of the WebFetch data.
- $value = $obj->bynum( $field_num );
-
Returns the value of the field located by the field number provided. The first field is numbered 0.
- $value = $obj->byname( $field_name );
-
Returns the value of the named field.
- $class->mk_field_accessor( $field_name, ... );
-
Creates accessor functions for each field name provided.
- accessor functions
-
Accessor functions are created for field names and well-known names as they are defined.
So a field named "title" can be accessed by an object method of the same name, like $obj->title .
SEE ALSO
WebFetch https://github.com/ikluft/WebFetch
BUGS AND LIMITATIONS
Please report bugs via GitHub at https://github.com/ikluft/WebFetch/issues
Patches and enhancements may be submitted via a pull request at https://github.com/ikluft/WebFetch/pulls
AUTHOR
Ian Kluft <https://github.com/ikluft>
COPYRIGHT AND LICENSE
This software is Copyright (c) 1998-2023 by Ian Kluft.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007