skype_bot 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/skype_bot.rb +1 -0
- data/lib/skype_bot/parser.rb +3 -2
- data/lib/skype_bot/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: a03d772b5abd91c6c8d895f55d583fb08873314a
|
4
|
+
data.tar.gz: bb50576e96b07f8fbe53adb6cb591817edd6bf2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a298a2b7b6b01cefa30270e585d021b9f15861126d13ad6fc60f5d9c69ffb54fde5a45d533e1c3a6598bf116b0a3a58c058e8375d52c34fea6b7646687cb71f
|
7
|
+
data.tar.gz: 8f5d756b0a6f7a0abca476dff820e01a269dc077ba21dd305968c323b0e5c82c59caf1e15be274c3e8afb330aa2f9c2c7cccb7e60aee8722901ada67c015ad27
|
data/lib/skype_bot.rb
CHANGED
data/lib/skype_bot/parser.rb
CHANGED
@@ -3,18 +3,19 @@ module SkypeBot
|
|
3
3
|
attr_accessor :payload
|
4
4
|
|
5
5
|
def initialize(data)
|
6
|
-
@payload =
|
6
|
+
@payload = data['_json']
|
7
7
|
end
|
8
8
|
|
9
9
|
def execute
|
10
10
|
payload.map do |event|
|
11
11
|
{
|
12
|
+
action: event['action'],
|
12
13
|
type: event['activity'].underscore,
|
13
14
|
from: event['from'],
|
14
15
|
display_name: event['fromDisplayName'],
|
15
16
|
to: event['to'],
|
16
17
|
time: Time.parse(event['time']),
|
17
|
-
content: event['content']
|
18
|
+
content: event['content']
|
18
19
|
}
|
19
20
|
end
|
20
21
|
end
|
data/lib/skype_bot/version.rb
CHANGED