-
-
25 Jul 2022 14:46:22 UTC
- Distribution: JMAP-Tester
- Module version: 0.102
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (6)
- Testers (321 / 0 / 5)
- Kwalitee
Bus factor: 1- 59.10% Coverage
- License: perl_5
- Perl: v5.14.0
- Activity
24 month- Tools
- Download (38.94KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 4 contributors-
Alfie John
-
Matthew Horsfall
-
Michael McClimon
-
Ricardo Signes
- Dependencies
- Carp
- Crypt::Mac::HMAC
- Crypt::Misc
- Data::Dumper
- Data::OptList
- Encode
- Future
- HTTP::Request
- JSON
- JSON::MaybeXS
- JSON::Typist
- LWP::UserAgent
- Module::Runtime
- Moo
- Moo::Role
- Params::Util
- Safe::Isa
- Sub::Exporter
- Throwable::Error
- URI
- URI::Escape
- URI::QueryParam
- namespace::clean
- strict
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
JMAP::Tester::Response::Sentence - a single triple within a JMAP response
VERSION
version 0.102
OVERVIEW
These objects represent sentences in the JMAP response. That is, if your response is:
[ [ "messages", { ... }, "a" ], # 1 [ "smellUpdates", { ... }, "b" ], # 2 [ "smells", { ... }, "b" ], # 3 ]
...then #1, #2, and #3 are each a single sentence.
The first item in the triple is accessed with the
name
method. The second is accessed with thearguments
method. The third, with theclient_id
method.METHODS
as_triple
as_stripped_triple
as_triple
returns the underlying JSON data of the sentence, which may include objects used to convey type information for booleans, strings, and numbers.For unblessed data, use
as_stripped_triple
.These return a three-element arrayref.
as_pair
as_stripped_pair
as_pair
returns the same thing asas_triple
, but without theclient_id
. That means it returns a two-element arrayref.as_stripped_pair
returns the same minus JSON type information.as_set
This method returns a JMAP::Tester::Response::Sentence::Set object for the current sentence. That's a specialized Sentence for
setFoos
-style JMAP method responses.assert_named
$sentence->assert_named("theName")
This method aborts unless the sentence's name is the given name. Otherwise, it returns the sentence.
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by FastMail, Ltd.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install JMAP::Tester, copy and paste the appropriate command in to your terminal.
cpanm JMAP::Tester
perl -MCPAN -e shell install JMAP::Tester
For more information on module installation, please visit the detailed CPAN module installation guide.