Class: Scrapbooker::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/scrapbooker/configuration.rb

Instance Method Summary collapse

Instance Method Details

#timestamp_storageObject



16
17
18
# File 'lib/scrapbooker/configuration.rb', line 16

def timestamp_storage
  @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 timestamp_storage=(path)
  @timestamp_storage = path
end

#twitter_feedObject



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=(options)
  @twitter_feed = options
end

#update_intervalObject



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