Class: Smsc::Config
- Inherits:
-
Object
- Object
- Smsc::Config
- Defined in:
- lib/smsc/config.rb
Overview
Smsc configuration container.
Instance Attribute Summary collapse
-
#encoding ⇒ String
character encoding.
-
#host ⇒ String
api host.
-
#logger ⇒ Logger
logger.
-
#login ⇒ String
user login.
-
#password ⇒ String
user password.
-
#ssl ⇒ Boolean
use https for requests.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Config
constructor
Create configuration object.
Constructor Details
#initialize(params = {}) ⇒ Config
Create configuration object
36 37 38 39 40 |
# File 'lib/smsc/config.rb', line 36 def initialize(params = {}) params.each do |key, val| send("#{key}=", val) end end |
Instance Attribute Details
#encoding ⇒ String
character encoding
11 12 13 |
# File 'lib/smsc/config.rb', line 11 def encoding @encoding end |
#host ⇒ String
api host
11 12 13 |
# File 'lib/smsc/config.rb', line 11 def host @host end |
#logger ⇒ Logger
logger
11 12 13 |
# File 'lib/smsc/config.rb', line 11 def logger @logger end |
#login ⇒ String
user login
11 12 13 |
# File 'lib/smsc/config.rb', line 11 def login @login end |
#password ⇒ String
user password
11 12 13 |
# File 'lib/smsc/config.rb', line 11 def password @password end |
#ssl ⇒ Boolean
use https for requests
11 12 13 |
# File 'lib/smsc/config.rb', line 11 def ssl @ssl end |