Class: Stix2::MetaObject::DataMarking::MarkingDefinition
Instance Method Summary collapse
-
#initialize(args) ⇒ MarkingDefinition
constructor
A new instance of MarkingDefinition.
Methods inherited from Common
#confidence_scale, #method_missing
Constructor Details
#initialize(args) ⇒ MarkingDefinition
Returns a new instance of MarkingDefinition.
9 10 11 12 13 14 15 |
# File 'lib/stix2/meta_objects/data_markings/marking_definition.rb', line 9 def initialize(args) super(args) raise("Property 'definition' must contain a single key") if definition.size > 1 if definition_type != definition.keys.first raise("Property 'definition_type' and 'definition' must have a matching key") end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stix2::Common