GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
JSON::Hyper::Link(3) User Contributed Perl Documentation JSON::Hyper::Link(3)

JSON::Hyper::Link - represents a link found in a JSON document

This is a tiny object representng a hyperlink found in a JSON document. You totally have my permission to treat it as a hashref if you want. Encapsulation, ensmapulation!

Generally speaking you don't want to construct these. They're constructed by JSON::Hyper's "find_links" method and I can't think of any conceivable reason why you'd want to construct one yourself. Nevertheless...
"new(\%attrs)"
"new($uri)"
Constructor takes a hashref of attributes, or a single URI as a string.

These attributes are hash keys for the constructor, and also exist as methods that can be called on the object to retrieve the value.
"href"
The URL linked to.
"rel"
The relationship between the URL has with the document that linked to it.
"targetSchema"
A JSON schema (see JSON::Schema) that the URL linked to supposedly conforms to.

A method "target_schema" is also available if you're alergic to camelCase, but "targetSchema" is the only attribute recognised by the constructor.

"method"
The HTTP method recommended for interacting with the URL. If undef, then 'GET' is usually a good bet.
"enctype"
If POSTing data to this URL, the recommended Content-Type header.
"schema"
"properties"

Please report any bugs to <http://rt.cpan.org/>.

Related modules: JSON::Hyper.

Toby Inkster <tobyink@cpan.org>.

Copyright 2010-2012 Toby Inkster.

This module is tri-licensed. It is available under the X11 (a.k.a. MIT) licence; you can also redistribute it and/or modify it under the same terms as Perl itself.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

2012-10-12 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.