Class: FullTime::Profile

Inherits:
Object
  • Object
show all
Extended by:
DSL
Defined in:
lib/full_time/profile.rb

Instance Method Summary collapse

Methods included from DSL

dsl_attr_accessor

Constructor Details

#initializeProfile

Returns a new instance of Profile.



7
8
9
10
# File 'lib/full_time/profile.rb', line 7

def initialize
  @skills = List.new
  @interests = List.new
end

Instance Method Details

#certification(&block) ⇒ Object



38
39
40
41
42
43
44
45
# File 'lib/full_time/profile.rb', line 38

def certification(&block)
  if block_given?
    @certification = Certification.new
    @certification.instance_eval(&block)
  end

  @certification
end

#education(&block) ⇒ Object



29
30
31
32
33
34
35
36
# File 'lib/full_time/profile.rb', line 29

def education(&block)
  if block_given?
    @education = Education.new
    @education.instance_eval(&block)
  end

  @education
end

#employment(&block) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/full_time/profile.rb', line 20

def employment(&block)
  if block_given?
    @employment = Employment.new
    @employment.instance_eval(&block)
  end

  @employment
end

#interests(&block) ⇒ Object



47
48
49
50
51
52
53
# File 'lib/full_time/profile.rb', line 47

def interests(&block)
  if block_given?
    @interests.instance_eval(&block)
  end

  @interests
end

#skills(&block) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/full_time/profile.rb', line 12

def skills(&block)
  if block_given?
    @skills.instance_eval(&block)
  end

  @skills
end