module Apps::Outlook::Schema::Concerns::Sections
Public Instance Methods
add_section(title, **attrs)
click to toggle source
# File lib/apps/outlook/schema/concerns/sections.rb, line 18 def add_section(title, **attrs) Section.new(title: title, **attrs).tap do |section| sections << section end end
sections()
click to toggle source
# File lib/apps/outlook/schema/concerns/sections.rb, line 6 def sections @sections ||= [] end
serialize()
click to toggle source
Calls superclass method
# File lib/apps/outlook/schema/concerns/sections.rb, line 10 def serialize if sections.any? super.merge("sections" => sections.map(&:serialize)) else super end end