Class: Governator::Config
- Inherits:
-
Object
- Object
- Governator::Config
- Defined in:
- lib/governator/config.rb
Overview
The configuration object to set Twitter preferences and keys
Class Attribute Summary collapse
-
.use_twitter ⇒ Object
Returns the value of attribute use_twitter.
Class Method Summary collapse
Class Attribute Details
.use_twitter ⇒ Object
Returns the value of attribute use_twitter.
7 8 9 |
# File 'lib/governator/config.rb', line 7 def use_twitter @use_twitter end |
Class Method Details
.twitter(&block) ⇒ Object
19 20 21 |
# File 'lib/governator/config.rb', line 19 def twitter(&block) Governator::TwitterClient.config(&block) end |
.use_twitter? ⇒ Boolean
15 16 17 |
# File 'lib/governator/config.rb', line 15 def use_twitter? @use_twitter || false end |