Module: NVD::JSONFeeds::Schema::CPE::HasURI
Overview
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#cpe22uri ⇒ String?
readonly
The CPE 2.2 URI.
-
#cpe23uri ⇒ String
(also: #cpe_uri)
readonly
The CPE 2.3 URI.
Class Method Summary collapse
-
.included(base) ⇒ Object
Extends ClassMethods.
Instance Method Summary collapse
-
#initialize(cpe23uri:, cpe22uri: nil) ⇒ Object
Initializes the CPE URIs.
Instance Attribute Details
#cpe22uri ⇒ String? (readonly)
The CPE 2.2 URI.
61 62 63 |
# File 'lib/nvd/json_feeds/schema/cpe/has_uri.rb', line 61 def cpe22uri @cpe22uri end |
#cpe23uri ⇒ String (readonly) Also known as: cpe_uri
The CPE 2.3 URI.
54 55 56 |
# File 'lib/nvd/json_feeds/schema/cpe/has_uri.rb', line 54 def cpe23uri @cpe23uri end |
Class Method Details
.included(base) ⇒ Object
Extends ClassMethods.
12 13 14 |
# File 'lib/nvd/json_feeds/schema/cpe/has_uri.rb', line 12 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#initialize(cpe23uri:, cpe22uri: nil) ⇒ Object
Initializes the CPE URIs.
46 47 48 49 |
# File 'lib/nvd/json_feeds/schema/cpe/has_uri.rb', line 46 def initialize(cpe23uri: , cpe22uri: nil) @cpe23uri = cpe23uri @cpe22uri = cpe22uri end |