slackbotsy 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slackbotsy/message.rb +7 -0
- data/lib/slackbotsy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5efc0ca0dbfe9cf018f18bd0d50e5d27968a3b1d
|
4
|
+
data.tar.gz: ba603e898d9cf5aadc05451c076476576d2f3928
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b9ad63c80f87a0792066bb46d3b80788ac4ef63a32a303b54283e7dea2a60fe61a8a5e8e945924f13e710b44984d0af728adbe4410b7d87a0a587a6e780396
|
7
|
+
data.tar.gz: 33e0f65c5594fec3082f4cbd788c3839e87d796e73209a3ce55ccbe0a81be85cd1abd3c273773d86d24621194510a6a6d0d57459c36d98e037d18d2e2096dc09
|
data/lib/slackbotsy/message.rb
CHANGED
@@ -16,6 +16,13 @@ module Slackbotsy
|
|
16
16
|
@caller.say(text, options)
|
17
17
|
end
|
18
18
|
|
19
|
+
## convenience getter methods for message properties
|
20
|
+
%w[ token team_id channel_id channel_name timestamp user_id user_name text ].each do |method|
|
21
|
+
define_method(method) do
|
22
|
+
self.fetch(method, nil)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
19
26
|
end
|
20
27
|
|
21
28
|
end
|
data/lib/slackbotsy/version.rb
CHANGED