netgsm_sms 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/netgsm_sms/xml_body.rb +22 -0
  3. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54653881737e5287794db01e357f2c347bc0a0ba
4
- data.tar.gz: 18252274fac58d607b9b67db4941899bd54cdcd2
3
+ metadata.gz: 0b414daa7ab5db92547a5fa084928ef65f53995b
4
+ data.tar.gz: e36736792965bffe933d0e8c97aed2d3946ad487
5
5
  SHA512:
6
- metadata.gz: f0d3594875bf6c02e97851c5553aad7dfc57590ee874307b958363ca52d699f7f2363690f21664a1ba8c3b4a5051c8c25de727b611e9642a92c0eac1e90b6950
7
- data.tar.gz: 471ad01a2c5b1a8ad28e7b2018624cccaf4b0f56ec0e45cf9fbfb71a99053c58dd66d69aef63e6fff97c0ab324e442a1807111f31534075fa25cdbf1acd9bafe
6
+ metadata.gz: 8f05159a66e7eeface19d5ce6a2e67dcba9eebb03f625ea74698e4e6ce78052de31eb8c2c9b87eb4e63ab73b4d07f1a16e43a5dbef498bfddec7d2e0513c4b9e
7
+ data.tar.gz: 0bc5932e850aa6a29d429974635f89633b2c20a5aa248f4d08b5dcfcf987be0864332d5b64906dee0dba37e5a5305daf9f9456d7b8e643db57f70e6e4de63d93
@@ -0,0 +1,22 @@
1
+ module NetGSM
2
+ class XmlBody
3
+ def self.send_sms_body(valid_options)
4
+ "<?xml version='1.0'?>
5
+ <mainbody>
6
+ <header>
7
+ <company #{"dil='TR'" if valid_options[:turkish] == true}>NETGSM</company>
8
+ <usercode>#{NetGSM.configuration.usercode}</usercode>
9
+ <password>#{NetGSM.configuration.password}</password>
10
+ <startdate>#{valid_options[:start_date]}</startdate>
11
+ <stopdate>#{valid_options[:stop_date]}</stopdate>
12
+ <type>1:n</type>
13
+ <msgheader>#{valid_options[:from]}</msgheader>
14
+ </header>
15
+ <body>
16
+ <msg><![CDATA[#{message_text}]]></msg>
17
+ <no>#{recipient}</no>
18
+ </body>
19
+ </mainbody>"
20
+ end
21
+ end
22
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netgsm_sms
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
  - IPOS - Huseyin Gomleksizoglu
@@ -21,6 +21,7 @@ files:
21
21
  - lib/netgsm_sms/configuration.rb
22
22
  - lib/netgsm_sms/sms.rb
23
23
  - lib/netgsm_sms/date.rb
24
+ - lib/netgsm_sms/xml_body.rb
24
25
  homepage: http://rubygems.org/gems/netgsm_sms
25
26
  licenses:
26
27
  - MIT