Module: ExchangeRate::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/exchange_rate.rb

Instance Method Summary collapse

Instance Method Details

#data_source_urlObject



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_pathObject



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

Returns:

  • (Boolean)


17
18
19
# File 'lib/exchange_rate.rb', line 17

def use_local_file?
  @use_local_file || false
end