shoutout_lite 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/shoutout.rb +23 -22
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87a4ba9d49bdca17a6edf1649dc0ce8850c79a71bbeba0a35917d74484cf6faf
4
- data.tar.gz: 2fb3a98f77caadfe406c1383d1c3e1cd051ac23f87fd1d008752abd4cea5eea3
3
+ metadata.gz: '024190bf73dbd6c6cfc06f8603b6add8a3e3e2a9bdc91ac7d8763dcc954c578a'
4
+ data.tar.gz: efd686aee000d2a687f10591e6a0fd1edb51b8628e0a1a6eb3f78a4f6d628faf
5
5
  SHA512:
6
- metadata.gz: 97329649922643aa6eb779948dff8ef91c5f9e40921b2f23b7e52d9945a4ba6c1e68bb3af47fb22d0870fdfe7d09076e2e84c43ac87c65e2248802b96d457789
7
- data.tar.gz: 5adf14dd35cd7f9f056d21779d335e97acebca8d5f2eeeeaf499feacccf9a6fafba60d3d510dc580718e2ca5d61160822bb308eca551bbfc8e2edf5d574fb116
6
+ metadata.gz: 1816502d3c6da39d6bed5ecf58a838b45293b74f2ba15282d882334d8527416892c1ca3a634357a8a511340e596dc1127a18e3156c5fc2909a5285c3381e8f81
7
+ data.tar.gz: 29b6432ea506f3143528a2c6dd36b788551330285048707276defb156c528075148b1fc2bc95a6aa0787ad27724da2506095593b5c0543c1e719be5e1d8f2865
data/lib/shoutout.rb CHANGED
@@ -1,27 +1,28 @@
1
1
 
2
- class Shoutout
3
- # Init
4
- # shoutout=Shoutout.new("APIKEY HERE")
5
- #
6
- #
7
- # Example:
8
- # >> response=shoutout.sendSms(from:"ShoutTEST",to:"94778811111",body:"This is a test message")
9
- # {"status"=>"1001", "description"=>"submit success", "cost"=>1, "responses"=>[{"destination"=>"94778811111", "reference_id"=>"ca31e340-c8f2-11eb-94b7-45623297139f", "status"=>"1001", "cost"=>1}]}
10
- #
11
- # Arguments:
12
- # apikey: (String) ShoutOUT Apikey
13
- # from: (String) sender ID
14
- # to: (Array) receivers phone numbers
15
- # body: (String) message body
16
- attr_reader :apikey
17
- def initialize(apikey)
18
- @apikey=apikey
19
- end
2
+ module Shoutout
3
+ class Client
4
+ # Init
5
+ # shoutout=Shoutout::Client.new("APIKEY HERE")
6
+ #
7
+ #
8
+ # Example:
9
+ # >> response=shoutout.sendSms(from:"ShoutTEST",to:"94778811111",body:"This is a test message")
10
+ # {"status"=>"1001", "description"=>"submit success", "cost"=>1, "responses"=>[{"destination"=>"94778811111", "reference_id"=>"ca31e340-c8f2-11eb-94b7-45623297139f", "status"=>"1001", "cost"=>1}]}
11
+ #
12
+ # Arguments:
13
+ # apikey: (String) ShoutOUT Apikey
14
+ # from: (String) sender ID
15
+ # to: (Array) receivers phone numbers
16
+ # body: (String) message body
17
+ attr_reader :apikey
18
+ def initialize(apikey)
19
+ @apikey=apikey
20
+ end
20
21
 
21
-
22
- def sendSms(from:,to:,body:)
23
- return SMS.send(self.apikey,from,to,body)
22
+
23
+ def sendSms(from:,to:,body:)
24
+ return SMS.send(self.apikey,from,to,body)
25
+ end
24
26
  end
25
27
  end
26
-
27
28
  require 'shoutout/sms'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoutout_lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShoutOUT Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-09 00:00:00.000000000 Z
11
+ date: 2021-06-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ShoutOUT SMS API integration
14
14
  email: support@getshoutout.com