Method: FCC::Station::ExtendedInfo#initialize
- Defined in:
- lib/fcc/station/extended_info.rb
#initialize(service) ⇒ ExtendedInfo
Returns a new instance of ExtendedInfo.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/fcc/station/extended_info.rb', line 12 def initialize(service) @service = service = { follow_redirects: true } @query = { # state: nil, # call: nil, # city: nil, # arn: nil, # serv: service.to_s.downcase, # Only return primary main records, no backup transmitters, etc… for now status: 3, # licensed records only # freq: @service.to_sym == :fm ? '87.1' : '530', # fre2: @service.to_sym == :fm ? '107.9' : '1700', # facid: nil, # class: nil, # dkt: nil, # dist: nil, # dlat2: nil, # dlon2: nil, # mlon2: nil, # mlat2: nil, # slat2: nil, # slon2: nil, # NS: "N", # e: 9, # EW: 'W', list: 4, # pipe separated output size: 9 } end |