diff options
author | Matias Linares <matiaslina@gmail.com> | 2019-06-05 00:46:00 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2019-06-05 00:46:00 -0300 |
commit | bc6c791c72f9fe460fdb9559522ae154124e8e97 (patch) | |
tree | a6be2f25368a6c8dc6df95a9db4fc4da16ac1c77 /lib/Matrix/Response.pm6 | |
parent | 2d54d1357deacf23c53bde9b521d464fc2fcb15e (diff) | |
parent | 4c007e0df300e7fb281fcadbcf707b71ed7e2483 (diff) | |
download | perl6-matrix-client-bc6c791c72f9fe460fdb9559522ae154124e8e97.tar.gz |
Merge branch 'master' into documentation
Diffstat (limited to 'lib/Matrix/Response.pm6')
-rw-r--r-- | lib/Matrix/Response.pm6 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Matrix/Response.pm6 b/lib/Matrix/Response.pm6 index d8f68f0..edd4d51 100644 --- a/lib/Matrix/Response.pm6 +++ b/lib/Matrix/Response.pm6 @@ -113,3 +113,12 @@ class Presence { :currently_active(:$!currently-active) = False ) { } } + +class Tag { + has @.tags; + + method new(%json) { + my @tags = %json<tags>.keys; + self.bless(:@tags) + } +} |