Class: BBCDataService::JSONParser

Inherits:
Object
  • Object
show all
Defined in:
lib/bbc_data_service/json_parser.rb

Class Method Summary collapse

Class Method Details

.parse_feed(feed_file) ⇒ Object



3
4
5
6
# File 'lib/bbc_data_service/json_parser.rb', line 3

def self.parse_feed(feed_file)
  feed_file = File.open(feed_file[:feed_url], "r")
  ActiveSupport::JSON.decode(feed_file)
end