Class: CVESchema::CVE::Description

Inherits:
Object
  • Object
show all
Includes:
HasLangValue
Defined in:
lib/cve_schema/cve/description.rb

Overview

Represents a description JSON object.

Instance Attribute Summary

Attributes included from HasLangValue

#lang, #value

Instance Method Summary collapse

Methods included from HasLangValue

included, #initialize, #to_s

Instance Method Details

#na?Boolean

Determines if the HasLangValue#value is n/a.

Returns:

  • (Boolean)


18
19
20
# File 'lib/cve_schema/cve/description.rb', line 18

def na?
  @value == NA
end