Class: ChartingUi::Configuration
- Inherits:
-
Object
- Object
- ChartingUi::Configuration
- Defined in:
- lib/charting_ui/configuration.rb
Instance Attribute Summary collapse
-
#default_font_family ⇒ Object
Returns the value of attribute default_font_family.
-
#default_font_size ⇒ Object
Returns the value of attribute default_font_size.
-
#default_offset_bottom ⇒ Object
Returns the value of attribute default_offset_bottom.
-
#default_offset_left ⇒ Object
Returns the value of attribute default_offset_left.
-
#default_offset_right ⇒ Object
Returns the value of attribute default_offset_right.
-
#default_offset_top ⇒ Object
Returns the value of attribute default_offset_top.
-
#default_title_tag ⇒ Object
Returns the value of attribute default_title_tag.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_family ⇒ Object
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_size ⇒ Object
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_bottom ⇒ Object
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_left ⇒ Object
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_right ⇒ Object
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_top ⇒ Object
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_tag ⇒ Object
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 |