Class: TuraTEL::Configuration
- Inherits:
-
Object
- Object
- TuraTEL::Configuration
- Defined in:
- lib/turatel_sms/configuration.rb
Overview
Used to set up and modify settings for the notifier.
Instance Attribute Summary collapse
-
#channel_code ⇒ Object
Returns the value of attribute channel_code.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#usercode ⇒ Object
Returns the value of attribute usercode.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 |
# File 'lib/turatel_sms/configuration.rb', line 11 def initialize @host = 'processor.smsorigin.com' @port = 80 end |
Instance Attribute Details
#channel_code ⇒ Object
Returns the value of attribute channel_code.
8 9 10 |
# File 'lib/turatel_sms/configuration.rb', line 8 def channel_code @channel_code end |
#debug ⇒ Object
Returns the value of attribute debug.
9 10 11 |
# File 'lib/turatel_sms/configuration.rb', line 9 def debug @debug end |
#host ⇒ Object
Returns the value of attribute host.
4 5 6 |
# File 'lib/turatel_sms/configuration.rb', line 4 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
7 8 9 |
# File 'lib/turatel_sms/configuration.rb', line 7 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
5 6 7 |
# File 'lib/turatel_sms/configuration.rb', line 5 def port @port end |
#usercode ⇒ Object
Returns the value of attribute usercode.
6 7 8 |
# File 'lib/turatel_sms/configuration.rb', line 6 def usercode @usercode end |