Sha256: ff83513269208a66ae47264cc985e70e95a6f2e5297c118a45a8a23f1dff7750
Contents?: true
Size: 387 Bytes
Versions: 3
Compression:
Stored size: 387 Bytes
Contents
require_relative "base_class" module Oscal class Role < Oscal::BaseClass KEY = %i(id title short_name description props links remakrs) attr_accessor *KEY attr_serializable *KEY def set_value(key_name, val) case key_name when "props" Property.wrap(val) when "links" Link.wrap(val) else val end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oscal-0.2.3 | lib/oscal/role.rb |
oscal-0.2.2 | lib/oscal/role.rb |
oscal-0.2.0 | lib/oscal/role.rb |