Class: MyLastCV::Style

Inherits:
Object
  • Object
show all
Defined in:
lib/my_last_cv/style.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_colorObject (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_fontObject (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_sizeObject (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_fontObject (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_sizeObject (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_optionsObject (readonly)

Returns the value of attribute page_options.



3
4
5
# File 'lib/my_last_cv/style.rb', line 3

def page_options
  @page_options
end

#section_fontObject (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_sizeObject (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