Module: ExchangeRate::Config
Instance Method Summary collapse
- #data_source_url ⇒ Object
- #local_data_source_path ⇒ Object
- #local_data_source_path=(path) ⇒ Object
- #use_local_file=(flag) ⇒ Object
- #use_local_file? ⇒ Boolean
Instance Method Details
#data_source_url ⇒ Object
29 30 31 |
# File 'lib/exchange_rate.rb', line 29 def data_source_url 'http://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d.xml' end |
#local_data_source_path ⇒ Object
25 26 27 |
# File 'lib/exchange_rate.rb', line 25 def local_data_source_path @local_data_source_path || '' end |
#local_data_source_path=(path) ⇒ Object
21 22 23 |
# File 'lib/exchange_rate.rb', line 21 def local_data_source_path=(path) @local_data_source_path = path end |
#use_local_file=(flag) ⇒ Object
13 14 15 |
# File 'lib/exchange_rate.rb', line 13 def use_local_file=(flag) @use_local_file = flag end |
#use_local_file? ⇒ Boolean
17 18 19 |
# File 'lib/exchange_rate.rb', line 17 def use_local_file? @use_local_file || false end |