Class: ChartingUi::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/charting_ui/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
12
13
# File 'lib/charting_ui/configuration.rb', line 5

def initialize
	@default_title_tag = "h3"
	@default_font_size = 12
	@default_font_family = "Arial"
	@default_offset_left = 50
	@default_offset_right = 20
	@default_offset_top = 30
	@default_offset_bottom = 40
end

Instance Attribute Details

#default_font_familyObject

Returns the value of attribute default_font_family.



3
4
5
# File 'lib/charting_ui/configuration.rb', line 3

def default_font_family
  @default_font_family
end

#default_font_sizeObject

Returns the value of attribute default_font_size.



3
4
5
# File 'lib/charting_ui/configuration.rb', line 3

def default_font_size
  @default_font_size
end

#default_offset_bottomObject

Returns the value of attribute default_offset_bottom.



3
4
5
# File 'lib/charting_ui/configuration.rb', line 3

def default_offset_bottom
  @default_offset_bottom
end

#default_offset_leftObject

Returns the value of attribute default_offset_left.



3
4
5
# File 'lib/charting_ui/configuration.rb', line 3

def default_offset_left
  @default_offset_left
end

#default_offset_rightObject

Returns the value of attribute default_offset_right.



3
4
5
# File 'lib/charting_ui/configuration.rb', line 3

def default_offset_right
  @default_offset_right
end

#default_offset_topObject

Returns the value of attribute default_offset_top.



3
4
5
# File 'lib/charting_ui/configuration.rb', line 3

def default_offset_top
  @default_offset_top
end

#default_title_tagObject

Returns the value of attribute default_title_tag.



3
4
5
# File 'lib/charting_ui/configuration.rb', line 3

def default_title_tag
  @default_title_tag
end