I am getting ArgumentError in ArticlesController#scrape on def extract_Articles(source_url:, source_type:, source_key:)
I am extracting the list of articles from different sources, and returning it back to my controller function.
class ArticleController
def Scrape
@get_Articles = Source.new
articles = @get_Articles.get_Articles
...
end
end
class Source
def get_Articles
@articles = Array.new
@articles = extract_Articles('url1','rss',nil)
@articles = extract_Articles('url2','rss',nil)
@articles = extract_Articles('url3','rss',nil)
@articles = extract_Articles('url4','json','some-value')
end
def extract_Articles(soruce_url:, url_type:, source_key:)
...
end
end
Could somebody let me know of this problem? Surprisingly I am not sure why this is not working actually!