Class: NVD::JSONFeeds::JSONFeedFile

Inherits:
FeedFile
  • Object
show all
Defined in:
lib/nvd/json_feeds/json_feed_file.rb

Overview

Represents a .json feed file.

Instance Attribute Summary

Attributes inherited from FeedFile

#path

Instance Method Summary collapse

Methods inherited from FeedFile

#initialize, #inspect, #json, parse, #parse, #sha256, #to_s

Constructor Details

This class inherits a constructor from NVD::JSONFeeds::FeedFile

Instance Method Details

#readString

Reads the JSON feed file.

Returns:

  • (String)


15
16
17
# File 'lib/nvd/json_feeds/json_feed_file.rb', line 15

def read
  File.read(@path)
end