Class: MyLastCV::Style
- Inherits:
-
Object
- Object
- MyLastCV::Style
- Defined in:
- lib/my_last_cv/style.rb
Instance Attribute Summary collapse
-
#accent_color ⇒ Object
readonly
Returns the value of attribute accent_color.
-
#body_font ⇒ Object
readonly
Returns the value of attribute body_font.
-
#body_size ⇒ Object
readonly
Returns the value of attribute body_size.
-
#header_font ⇒ Object
readonly
Returns the value of attribute header_font.
-
#header_size ⇒ Object
readonly
Returns the value of attribute header_size.
-
#page_options ⇒ Object
readonly
Returns the value of attribute page_options.
-
#section_font ⇒ Object
readonly
Returns the value of attribute section_font.
-
#section_size ⇒ Object
readonly
Returns the value of attribute section_size.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Style
constructor
A new instance of Style.
Constructor Details
#initialize(opts = {}) ⇒ Style
Returns a new instance of Style.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/my_last_cv/style.rb', line 5 def initialize(opts = {}) @header_font = opts[:header_font] || 'Helvetica' @header_size = opts[:header_size] || 18 @section_font = opts[:section_font] || 'Helvetica' @section_size = opts[:section_size] || 12 @body_font = opts[:body_font] || 'Helvetica' @body_size = opts[:body_size] || 10 @page_options = opts[:page_options] || { margin: 48 } @accent_color = opts[:accent_color] || '000000' end |
Instance Attribute Details
#accent_color ⇒ Object (readonly)
Returns the value of attribute accent_color.
3 4 5 |
# File 'lib/my_last_cv/style.rb', line 3 def accent_color @accent_color end |
#body_font ⇒ Object (readonly)
Returns the value of attribute body_font.
3 4 5 |
# File 'lib/my_last_cv/style.rb', line 3 def body_font @body_font end |
#body_size ⇒ Object (readonly)
Returns the value of attribute body_size.
3 4 5 |
# File 'lib/my_last_cv/style.rb', line 3 def body_size @body_size end |
#header_font ⇒ Object (readonly)
Returns the value of attribute header_font.
3 4 5 |
# File 'lib/my_last_cv/style.rb', line 3 def header_font @header_font end |
#header_size ⇒ Object (readonly)
Returns the value of attribute header_size.
3 4 5 |
# File 'lib/my_last_cv/style.rb', line 3 def header_size @header_size end |
#page_options ⇒ Object (readonly)
Returns the value of attribute page_options.
3 4 5 |
# File 'lib/my_last_cv/style.rb', line 3 def @page_options end |
#section_font ⇒ Object (readonly)
Returns the value of attribute section_font.
3 4 5 |
# File 'lib/my_last_cv/style.rb', line 3 def section_font @section_font end |
#section_size ⇒ Object (readonly)
Returns the value of attribute section_size.
3 4 5 |
# File 'lib/my_last_cv/style.rb', line 3 def section_size @section_size end |