Class: Cv::Generator::ErbData
- Inherits:
-
Object
- Object
- Cv::Generator::ErbData
- Defined in:
- lib/cv/generator/erb_data.rb
Instance Attribute Summary collapse
-
#css_paths ⇒ Object
Returns the value of attribute css_paths.
-
#education ⇒ Object
readonly
Returns the value of attribute education.
-
#general ⇒ Object
readonly
Returns the value of attribute general.
-
#jobs ⇒ Object
readonly
Returns the value of attribute jobs.
-
#other_skills ⇒ Object
readonly
Returns the value of attribute other_skills.
-
#projects ⇒ Object
readonly
Returns the value of attribute projects.
-
#skills ⇒ Object
readonly
Returns the value of attribute skills.
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(data) ⇒ ErbData
constructor
A new instance of ErbData.
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_paths ⇒ Object
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 |
#education ⇒ Object (readonly)
Returns the value of attribute education.
4 5 6 |
# File 'lib/cv/generator/erb_data.rb', line 4 def education @education end |
#general ⇒ Object (readonly)
Returns the value of attribute general.
4 5 6 |
# File 'lib/cv/generator/erb_data.rb', line 4 def general @general end |
#jobs ⇒ Object (readonly)
Returns the value of attribute jobs.
4 5 6 |
# File 'lib/cv/generator/erb_data.rb', line 4 def jobs @jobs end |
#other_skills ⇒ Object (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 |
#projects ⇒ Object (readonly)
Returns the value of attribute projects.
4 5 6 |
# File 'lib/cv/generator/erb_data.rb', line 4 def projects @projects end |
#skills ⇒ Object (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_binding ⇒ Object
16 17 18 |
# File 'lib/cv/generator/erb_data.rb', line 16 def get_binding binding end |