Class: Sendable::Config
- Inherits:
-
Object
- Object
- Sendable::Config
- Defined in:
- lib/sendable/config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #set_defaults ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/sendable/config.rb', line 5 def initialize set_defaults end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/sendable/config.rb', line 3 def api_key @api_key end |
Instance Method Details
#set_defaults ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/sendable/config.rb', line 9 def set_defaults if ENV.has_key?("SENDABLE_API_KEY") @api_key = ENV["SENDABLE_API_KEY"] else @api_key = "" end end |