Class: Ambling::Pie::Settings::Group

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/pie.rb

Constant Summary collapse

VALUES =
[:percent,:color,:title,:url,:description,:pull_out]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#colorObject

(hex color code) color of “The others” slice



370
371
372
# File 'lib/ambling/pie.rb', line 370

def color
  @color
end

#descriptionObject

description of “The others” slice



385
386
387
# File 'lib/ambling/pie.rb', line 385

def description
  @description
end

#percentObject

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_outObject

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

#titleObject

Others

title of “The others” slice



375
376
377
# File 'lib/ambling/pie.rb', line 375

def title
  @title
end

#urlObject

url of “The others” slice



380
381
382
# File 'lib/ambling/pie.rb', line 380

def url
  @url
end