Class: EmaySms::Configuration
- Inherits:
-
Object
- Object
- EmaySms::Configuration
- Defined in:
- lib/emay_sms/configuration.rb
Instance Method Summary collapse
- #account ⇒ Object
- #account=(account) ⇒ Object
- #password ⇒ Object
- #password=(password) ⇒ Object
- #secrect ⇒ Object
- #secrect=(secrect) ⇒ Object
- #server ⇒ Object
- #server=(server) ⇒ Object
- #sign ⇒ Object
- #sign=(sign) ⇒ Object
Instance Method Details
#account ⇒ Object
11 12 13 |
# File 'lib/emay_sms/configuration.rb', line 11 def account @account ||= "account" end |
#account=(account) ⇒ Object
15 16 17 |
# File 'lib/emay_sms/configuration.rb', line 15 def account=(account) @account = account end |
#password ⇒ Object
19 20 21 |
# File 'lib/emay_sms/configuration.rb', line 19 def password @password ||= "password" end |
#password=(password) ⇒ Object
23 24 25 |
# File 'lib/emay_sms/configuration.rb', line 23 def password=(password) @password = password end |
#secrect ⇒ Object
27 28 29 |
# File 'lib/emay_sms/configuration.rb', line 27 def secrect @secrect ||= SecureRandom.hex(10) end |
#secrect=(secrect) ⇒ Object
31 32 33 |
# File 'lib/emay_sms/configuration.rb', line 31 def secrect=(secrect) @secrect = secrect end |
#server ⇒ Object
3 4 5 |
# File 'lib/emay_sms/configuration.rb', line 3 def server @server ||= "http://sdk4report.eucp.b2m.cn:8080/sdk/SDKService?wsdl" end |
#server=(server) ⇒ Object
7 8 9 |
# File 'lib/emay_sms/configuration.rb', line 7 def server=(server) @server = server end |
#sign ⇒ Object
35 36 37 |
# File 'lib/emay_sms/configuration.rb', line 35 def sign @sign end |
#sign=(sign) ⇒ Object
39 40 41 |
# File 'lib/emay_sms/configuration.rb', line 39 def sign=(sign) @sign = "【#{sign}】" end |