Class: Oscal::IncludeControl

Inherits:
BaseClass show all
Defined in:
lib/oscal/include_control.rb

Constant Summary collapse

KEY =
%i(with_child_controls with_ids matching)

Instance Method Summary collapse

Methods inherited from BaseClass

#initialize, wrap

Methods included from Serializer

included, #to_h, #to_json, #to_xml, #to_yaml

Constructor Details

This class inherits a constructor from Oscal::BaseClass

Instance Method Details

#set_value(key_name, val) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/oscal/include_control.rb', line 11

def set_value(key_name, val)
  case key_name
  when "with_ids"
    WithId.wrap(val)
  when "matching"
    Matching.wrap(val)
  else
    val
  end
end