Class: Ambling::Pie::Settings::Group
- Inherits:
-
Object
- Object
- Ambling::Pie::Settings::Group
- Includes:
- Base
- Defined in:
- lib/ambling/pie.rb
Constant Summary collapse
- VALUES =
[:percent,:color,:title,:url,:description,:pull_out]
Instance Attribute Summary collapse
-
#color ⇒ Object
-
(hex color code) color of “The others” slice.
-
#description ⇒ Object
-
description of “The others” slice.
-
#percent ⇒ Object
- 0
-
(Number) if the calculated percent value of a slice is less than specified here, and there are more than one such slices, they can be grouped to “The others” slice.
-
#pull_out ⇒ Object
- false
-
(true / false) whether to pull out the other slice or not.
-
#title ⇒ Object
- Others
-
title of “The others” slice.
-
#url ⇒ Object
-
url of “The others” slice.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#color ⇒ Object
-
(hex color code) color of “The others” slice
370 371 372 |
# File 'lib/ambling/pie.rb', line 370 def color @color end |
#description ⇒ Object
-
description of “The others” slice
385 386 387 |
# File 'lib/ambling/pie.rb', line 385 def description @description end |
#percent ⇒ Object
- 0
-
(Number) if the calculated percent value of a slice is less than specified here, and there are more than one such slices, they can be grouped to “The others” slice
365 366 367 |
# File 'lib/ambling/pie.rb', line 365 def percent @percent end |
#pull_out ⇒ Object
- false
-
(true / false) whether to pull out the other slice or not
390 391 392 |
# File 'lib/ambling/pie.rb', line 390 def pull_out @pull_out end |
#title ⇒ Object
- Others
-
title of “The others” slice
375 376 377 |
# File 'lib/ambling/pie.rb', line 375 def title @title end |
#url ⇒ Object
-
url of “The others” slice
380 381 382 |
# File 'lib/ambling/pie.rb', line 380 def url @url end |