Module: ResumeTools::Renderer::JSONHelpers::SectionMethods

Defined in:
lib/resumetools/resume/json.rb

Instance Method Summary collapse

Instance Method Details

#json_frameObject


24
25
26
27
28
29
30
31
# File 'lib/resumetools/resume/json.rb', line 24

def json_frame
  frame = {
    :title => self.title,
    :para => self.para,
    :items => self.items.map { |item| item.json_frame },
    :periods => self.periods.map { |period| period.json_frame }
  }
end