slackoff 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/slackoff/slash.rb +20 -0
  3. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6ba9f291a91b80f9d48f8f56f125c3acd627177
4
- data.tar.gz: dd154e8686662fba9e2e9275a76792ed7ed0258d
3
+ metadata.gz: 1f0a1965ff8ab34472e3e51000fde157fd881da6
4
+ data.tar.gz: 7a0e31f75583cb4e58b28e8caa7eac749c92a8b3
5
5
  SHA512:
6
- metadata.gz: 338b4464ebc0ebf72b0d4036b9aa3172a7c941fa5aa3ac662d8b955390ddc31dc829e5778d4084e79fa210169ed319334f558c15adb51f67a14e9fcd88de3ece
7
- data.tar.gz: a84caa7945cefaa0656c89c0d06f890c69d4052222cd372780095568d78283b7948864bbea6466979ca7fb956fb41e4cfdc937cfb17f2e5750b9e48149824035
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.3
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