lib/oscal/revision.rb in oscal-0.1.1 vs lib/oscal/revision.rb in oscal-0.2.0

- old
+ new

@@ -1,19 +1,20 @@ require_relative "base_class" module Oscal class Revision < Oscal::BaseClass KEY = %i(title published last_modified version oscal_version - props links remarks) + props links remarks) attr_accessor *KEY + attr_serializable *KEY def set_value(key_name, val) case key_name - when 'props' + when "props" Property.wrap(val) - when 'links' + when "links" Link.wrap(val) else val end end