slackoff 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slackoff/slash.rb +20 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f0a1965ff8ab34472e3e51000fde157fd881da6
|
4
|
+
data.tar.gz: 7a0e31f75583cb4e58b28e8caa7eac749c92a8b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a8c3e37309ed744627b346c098f756546e9c6d3483a96e7388f9cfbfc48cb0da400fd367f068a286e90efa1d72ff16b759f46ca6ec0e901f07e35402ee4e30f
|
7
|
+
data.tar.gz: 10e9c17ea79bf0f735d4f1f521fd0d279208b61c592cbfce716bdb21622dc263b81f1d586a8f12e9a9b44dae7693645a61154f3580679ac059befed513e7ac6f
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Slackoff
|
2
|
+
##
|
3
|
+
# Retrieves slash command data from the params hash
|
4
|
+
class SlashData
|
5
|
+
attr_reader :token, :team_id, :team_domain, :channel_id, :channel_name,
|
6
|
+
:user_id, :user_name, :command, :text
|
7
|
+
|
8
|
+
def initialize(params)
|
9
|
+
@token = params[:token]
|
10
|
+
@team_id = params[:team_id]
|
11
|
+
@team_domain = params[:team_domain]
|
12
|
+
@channel_id = params[:channel_id]
|
13
|
+
@channel_name = params[:channel_name]
|
14
|
+
@user_id = params[:user_id]
|
15
|
+
@user_name = params[:user_name]
|
16
|
+
@command = params[:command]
|
17
|
+
@text = params[:text]
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slackoff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Poll
|
@@ -17,6 +17,7 @@ extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
19
|
- lib/slackoff.rb
|
20
|
+
- lib/slackoff/slash.rb
|
20
21
|
homepage: http://github.com/cjpoll/slackoff
|
21
22
|
licenses:
|
22
23
|
- MIT
|