aboutsummaryrefslogtreecommitdiff
path: root/lib/Matrix/Response.pm6
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2019-06-05 00:46:00 -0300
committerMatias Linares <matiaslina@gmail.com>2019-06-05 00:46:00 -0300
commitbc6c791c72f9fe460fdb9559522ae154124e8e97 (patch)
treea6be2f25368a6c8dc6df95a9db4fc4da16ac1c77 /lib/Matrix/Response.pm6
parent2d54d1357deacf23c53bde9b521d464fc2fcb15e (diff)
parent4c007e0df300e7fb281fcadbcf707b71ed7e2483 (diff)
downloadperl6-matrix-client-bc6c791c72f9fe460fdb9559522ae154124e8e97.tar.gz
Merge branch 'master' into documentation
Diffstat (limited to 'lib/Matrix/Response.pm6')
-rw-r--r--lib/Matrix/Response.pm69
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)
+ }
+}