Module: FCC

Defined in:
lib/fcc.rb,
lib/version.rb,
lib/fcc/station.rb,
lib/fcc/station/info.rb,
lib/fcc/station/cache.rb,
lib/fcc/station/index.rb,
lib/fcc/station/result.rb,
lib/fcc/station/lms_data.rb,
lib/fcc/station/record_group.rb,
lib/fcc/station/extended_info.rb,
lib/fcc/station/record_delegate.rb,
lib/fcc/station/parsers/lms_data.rb,
lib/fcc/station/parsers/extended_info.rb

Defined Under Namespace

Modules: Station

Constant Summary collapse

FM_FULL_SERVICE =
'FM'
FM_LOW_POWER =
'FL'
FM_BOOSTER =
'FB'
FM_TRANSLATOR =
'FX'
VERSION =
'1.4.6'

Class Method Summary collapse

Class Method Details

.cacheObject



14
15
16
# File 'lib/fcc.rb', line 14

def self.cache
  @cache ||= Station::Cache.new
end

.cache=(cache_service) ⇒ Object



18
19
20
# File 'lib/fcc.rb', line 18

def self.cache=(cache_service)
  @cache = cache_service
end

.error(message) ⇒ Object



27
28
29
30
# File 'lib/fcc.rb', line 27

def self.error(message)
  @error_logger ||= Logger.new($stderr)
  @error_logger.error(message)
end

.log(message) ⇒ Object



22
23
24
25
# File 'lib/fcc.rb', line 22

def self.log(message)
  @logger ||= Logger.new($stdout)
  @logger.info(message)
end