12 Oct 2012 09:01:29 UTC
- Distribution: JSON-Hyper
- Module version: 0.011
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (1)
- Testers (4627 / 0 / 0)
- KwaliteeBus factor: 1
- 36.64% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity24 month
- Download (51.59KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userTOBYINK Toby Inksterand 1 contributors
- SEE ALSO
- COPYRIGHT AND LICENCE
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_linksmethod and I can't think of any conceivable reason why you'd want to construct one yourself. Nevertheless...
These attributes are hash keys for the constructor, and also exist as methods that can be called on the object to retrieve the value.
The URL linked to.
The relationship between the URL has with the document that linked to it.
A JSON schema (see JSON::Schema) that the URL linked to supposedly conforms to.
target_schemais also available if you're alergic to camelCase, but
targetSchemais the only attribute recognised by the constructor.
The HTTP method recommended for interacting with the URL. If undef, then 'GET' is usually a good bet.
If POSTing data to this URL, the recommended Content-Type header.
Please report any bugs to http://rt.cpan.org/.
Related modules: JSON::Hyper.
Toby Inkster <email@example.com>.
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.