class ResumeStylist::Resume
Constants
- Handlers
Attributes
data[RW]
Public Class Methods
new(input, resume_format)
click to toggle source
# File lib/resume-stylist/resume.rb, line 15 def initialize(input, resume_format) @data = { "basics" => { "name" => nil, "label" => nil, "picture" => nil, "email" => nil, "phone" => nil, "website" => nil, "summary" => nil }, "location" => { "address" => nil, "postalCode" => nil, "city" => nil, "countryCode" => nil, "region" => nil }, "profiles" => [], # { network, username, url } "work" => [], # { organisation, position, website, summary, highlights => [], startDate, endDate } "volunteer" => [], # { organisation, position, website, summary, highlights => [], startDate, endDate } "education" => [], # { institution, area, studyType, grade, courses => [], startDate, endDate } "publications" => [], # { name, publisher, releaseDate, website, summary } "skill" => [], # { name, level } "language" => [], # { name, level } "reference" => [], # { name, reference } # @XXX: Remove these? "awards" => [], # { title, date, awarder, summary } "interests" => [] # { name, keywords } } if handler = Handlers.find {|h| h.handles? resume_format } handler.instance_method(:load!).bind(self).call(input) else raise UnsuportedFormatError, "`#{resume_format.to_s}` is not a valid format" end end
register_handler(handler)
click to toggle source
# File lib/resume-stylist/resume.rb, line 9 def self.register_handler(handler) Handlers << handler end