Class: TurbosmsRuby::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/turbosms_ruby/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#senderObject

Returns the value of attribute sender.



3
4
5
# File 'lib/turbosms_ruby/config.rb', line 3

def sender
  @sender
end

#tokenObject

Returns the value of attribute token.



3
4
5
# File 'lib/turbosms_ruby/config.rb', line 3

def token
  @token
end