Class: Scrapbooker::Configuration
- Inherits:
-
Object
- Object
- Scrapbooker::Configuration
- Defined in:
- lib/scrapbooker/configuration.rb
Instance Method Summary collapse
- #timestamp_storage ⇒ Object
- #timestamp_storage=(path) ⇒ Object
- #twitter_feed ⇒ Object
- #twitter_feed=(options) ⇒ Object
- #update_interval ⇒ Object
- #update_interval=(minutes) ⇒ Object
Instance Method Details
#timestamp_storage ⇒ Object
16 17 18 |
# File 'lib/scrapbooker/configuration.rb', line 16 def @timestamp_storage = @timestamp_storage ? @timestamp_storage : "#{Rails.root}/tmp" end |
#timestamp_storage=(path) ⇒ Object
12 13 14 |
# File 'lib/scrapbooker/configuration.rb', line 12 def (path) @timestamp_storage = path end |
#twitter_feed ⇒ Object
24 25 26 |
# File 'lib/scrapbooker/configuration.rb', line 24 def twitter_feed @twitter_feed end |
#twitter_feed=(options) ⇒ Object
20 21 22 |
# File 'lib/scrapbooker/configuration.rb', line 20 def twitter_feed=() @twitter_feed = end |
#update_interval ⇒ Object
8 9 10 |
# File 'lib/scrapbooker/configuration.rb', line 8 def update_interval @interval = @interval ? @interval : 1440 #The default interval in minutes (24 hours) end |
#update_interval=(minutes) ⇒ Object
4 5 6 |
# File 'lib/scrapbooker/configuration.rb', line 4 def update_interval=(minutes) @interval = minutes end |