Class: Cv::Generator::ErbData

Inherits:
Object
  • Object
show all
Defined in:
lib/cv/generator/erb_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ErbData

Returns a new instance of ErbData.



7
8
9
10
11
12
13
14
# File 'lib/cv/generator/erb_data.rb', line 7

def initialize(data)
  @general = data['general']
  @jobs = data['jobs']
  @skills = data['skills']
  @other_skills = data['other_skills']
  @projects = data['projects']
  @education = data['education']
end

Instance Attribute Details

#css_pathsObject

Returns the value of attribute css_paths.



5
6
7
# File 'lib/cv/generator/erb_data.rb', line 5

def css_paths
  @css_paths
end

#educationObject (readonly)

Returns the value of attribute education.



4
5
6
# File 'lib/cv/generator/erb_data.rb', line 4

def education
  @education
end

#generalObject (readonly)

Returns the value of attribute general.



4
5
6
# File 'lib/cv/generator/erb_data.rb', line 4

def general
  @general
end

#jobsObject (readonly)

Returns the value of attribute jobs.



4
5
6
# File 'lib/cv/generator/erb_data.rb', line 4

def jobs
  @jobs
end

#other_skillsObject (readonly)

Returns the value of attribute other_skills.



4
5
6
# File 'lib/cv/generator/erb_data.rb', line 4

def other_skills
  @other_skills
end

#projectsObject (readonly)

Returns the value of attribute projects.



4
5
6
# File 'lib/cv/generator/erb_data.rb', line 4

def projects
  @projects
end

#skillsObject (readonly)

Returns the value of attribute skills.



4
5
6
# File 'lib/cv/generator/erb_data.rb', line 4

def skills
  @skills
end

Instance Method Details

#get_bindingObject



16
17
18
# File 'lib/cv/generator/erb_data.rb', line 16

def get_binding
  binding
end