module NVD::JSONFeeds::Schema::CPE::HasURI

Adds the {#cpe23uri} and {#cpe22uri} attributes.

Attributes

cpe22uri[R]

The CPE 2.2 URI.

@return [String, nil]

cpe23uri[R]

The CPE 2.3 URI.

@return [String]

cpe_uri[R]

The CPE 2.3 URI.

@return [String]

Public Class Methods

included(base) click to toggle source

Extends {ClassMethods}.

# File lib/nvd/json_feeds/schema/cpe/has_uri.rb, line 12
def self.included(base)
  base.extend ClassMethods
end
new(cpe23uri: , cpe22uri: nil) click to toggle source

Initializes the CPE URIs.

@param [String] cpe23uri

The CPE 2.3 URI.

@param [String] cpe22uri

The CPE 2.2 URI.
# File lib/nvd/json_feeds/schema/cpe/has_uri.rb, line 46
def initialize(cpe23uri: , cpe22uri: nil)
  @cpe23uri = cpe23uri
  @cpe22uri = cpe22uri
end