aboutsummaryrefslogtreecommitdiff
path: root/lib/Matrix/Response.pm6
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2019-03-18 16:13:46 -0300
committerMatias Linares <matiaslina@gmail.com>2019-03-18 16:13:46 -0300
commit401f3f80dca1cb16e51ab97b91d672ef895d9a0f (patch)
tree121602e775fde556ac34dec9f25a65eb2a30ff4b /lib/Matrix/Response.pm6
parent0977a9f4148518686ac6e75c56542e7d8daca029 (diff)
parent24fa000eba9f778311b196e4df255952b6ac92bc (diff)
downloadperl6-matrix-client-401f3f80dca1cb16e51ab97b91d672ef895d9a0f.tar.gz
Merge remote-tracking branch 'github/master'
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)
+ }
+}