Class: TurbosmsRuby::Config
- Inherits:
-
Object
- Object
- TurbosmsRuby::Config
- Defined in:
- lib/turbosms_ruby/config.rb
Instance Attribute Summary collapse
-
#sender ⇒ Object
Returns the value of attribute sender.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 |
# File 'lib/turbosms_ruby/config.rb', line 5 def initialize @token = ENV['TURBOSMS_TOKEN'] @sender = ENV['TURBOSMS_SENDER'] || 'IT Alarm' end |
Instance Attribute Details
#sender ⇒ Object
Returns the value of attribute sender.
3 4 5 |
# File 'lib/turbosms_ruby/config.rb', line 3 def sender @sender end |
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'lib/turbosms_ruby/config.rb', line 3 def token @token end |