Class: BankCrawlers::Hapoalim::Cache
- Inherits:
-
Object
- Object
- BankCrawlers::Hapoalim::Cache
- Defined in:
- lib/bank_crawlers/hapoalim/cache.rb
Instance Method Summary collapse
Instance Method Details
#clear ⇒ Object
13 14 15 |
# File 'lib/bank_crawlers/hapoalim/cache.rb', line 13 def clear File.unlink todays_transaction_table_file end |
#get ⇒ Object
3 4 5 |
# File 'lib/bank_crawlers/hapoalim/cache.rb', line 3 def get todays_transaction_table_file.read if todays_transaction_table_file.exist? end |
#set(transaction_table) ⇒ Object
7 8 9 10 11 |
# File 'lib/bank_crawlers/hapoalim/cache.rb', line 7 def set transaction_table FileUtils.makedirs(dir) File.write todays_transaction_table_file, transaction_table transaction_table end |