Class: Ayadn::SetNiceRank
Instance Attribute Summary
Attributes inherited from SetBase
#category, #input, #output
Instance Method Summary
collapse
Methods inherited from SetBase
#log, #save
Constructor Details
Returns a new instance of SetNiceRank.
423
424
425
426
|
# File 'lib/ayadn/set.rb', line 423
def initialize
super
@category = 'nicerank'
end
|
Instance Method Details
#active(value) ⇒ Object
434
435
436
|
# File 'lib/ayadn/set.rb', line 434
def active value
filter(value)
end
|
#filter(value) ⇒ Object
428
429
430
431
432
|
# File 'lib/ayadn/set.rb', line 428
def filter value
@input = 'filter'
@output = Validators.boolean(value)
Settings.options.nicerank.filter = @output
end
|
#threshold(value) ⇒ Object
444
445
446
447
448
|
# File 'lib/ayadn/set.rb', line 444
def threshold value
@input = 'threshold'
@output = Validators.threshold(value)
Settings.options.nicerank.threshold = @output
end
|
#unranked(value) ⇒ Object
438
439
440
441
442
|
# File 'lib/ayadn/set.rb', line 438
def unranked value
@input = 'unranked'
@output = Validators.boolean(value)
Settings.options.nicerank.unranked = @output
end
|