class Kriterion::Section
Attributes
description[RW]
items[RW]
name[RW]
sections[RW]
standard[RW]
uuid[RW]
Public Class Methods
new(data)
click to toggle source
Calls superclass method
Kriterion::Object::new
# File lib/kriterion/section.rb, line 13 def initialize(data) super(data) @uuid = data['uuid'] || SecureRandom.uuid @name = data['name'] @standard = data['standard'] @description = data['description'] @items = data['items'] || [] @sections = data['sections'] || [] @parent_type = data['parent_type'] @parent_uuid = data['parent_uuid'] end
Public Instance Methods
compliance()
click to toggle source
Calls superclass method
Kriterion::Object#compliance
# File lib/kriterion/section.rb, line 41 def compliance super([items, sections].flatten) end
expandable?()
click to toggle source
# File lib/kriterion/section.rb, line 26 def expandable? true end
expandable_keys()
click to toggle source
# File lib/kriterion/section.rb, line 30 def expandable_keys %i[ sections items ] end
type()
click to toggle source
# File lib/kriterion/section.rb, line 37 def type :section end