aboutsummaryrefslogtreecommitdiff
path: root/lib/Matrix
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2018-05-08 11:01:54 -0300
committerMatias Linares <matiaslina@openmailbox.org>2018-05-08 11:01:54 -0300
commit2220dc4babe2264453ddd26c45a9437973435bc3 (patch)
tree7128a1a1c72384b1da78ced15ecf923785cc9136 /lib/Matrix
parent8ada19b8f3ac4cc2654d03025664582166151d14 (diff)
downloadperl6-matrix-client-2220dc4babe2264453ddd26c45a9437973435bc3.tar.gz
Add method Str to Room
Diffstat (limited to 'lib/Matrix')
-rw-r--r--lib/Matrix/Client/Room.pm65
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Matrix/Client/Room.pm6 b/lib/Matrix/Client/Room.pm6
index c264a80..1f6aa19 100644
--- a/lib/Matrix/Client/Room.pm6
+++ b/lib/Matrix/Client/Room.pm6
@@ -51,6 +51,9 @@ method leave() {
}
method gist(--> Str) {
- my $name = self.name();
+ "Room<name: {self.name()}, id: {self.id}>"
+}
+
+method Str(--> Str) {
"Room<name: {self.name()}, id: {self.id}>"
}