globelabs_sms_rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/lib/globelabs_sms_rails.rb +3 -5
- data/lib/globelabs_sms_rails/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: 0c7d30ff0715a5ce9fa4b20eaae6f95bca5c99eb
|
4
|
+
data.tar.gz: 353850da1b66505589e3fc9aa6f06031936938d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a624a77fb31c3eceb7edbbb4a6d01f21449b7269975f8ff4e1151555187b631b7d9ddbbd1cfb21e62b4e9fb390726f27a19acf25a2dee5eed19f7a9df9fe5168
|
7
|
+
data.tar.gz: 73f2fccbafebf21693278a82943626c79de37ac2d5a7e1929674c16c1d0517bc16f7acc5bfb17bb24d168b539b5dc6196128c46be9f321b3c6683c97010c8f7c
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Add this line to your application's Gemfile:
|
4
4
|
|
5
5
|
```ruby
|
6
|
-
gem 'globelabs_sms_rails'
|
6
|
+
gem 'globelabs_sms_rails', '0.0.3'
|
7
7
|
```
|
8
8
|
|
9
9
|
And then execute:
|
@@ -21,8 +21,7 @@ After install the gem, generate an initializer and configure it
|
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
```ruby
|
24
|
-
|
25
|
-
sms.send_to("63917XXXXXXX")
|
24
|
+
response = GlobelabsSmsRails.send_message("63917XXXXXXX", "Your message")
|
26
25
|
```
|
27
26
|
|
28
27
|
## License
|
data/lib/globelabs_sms_rails.rb
CHANGED
@@ -25,12 +25,10 @@ module GlobelabsSmsRails
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
def self.
|
29
|
-
@message = msg
|
30
|
-
end
|
31
|
-
|
32
|
-
def self.send_to(address)
|
28
|
+
def self.send_message(address, message)
|
33
29
|
@address = address
|
30
|
+
@message = message
|
31
|
+
|
34
32
|
if @address.nil? || @message.nil?
|
35
33
|
raise 'Address or message is nil'
|
36
34
|
else
|