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.
340
341
342
343
|
# File 'lib/ayadn/set.rb', line 340
def initialize
super
@category = 'nicerank'
end
|
Instance Method Details
#cache(value) ⇒ Object
363
364
365
366
367
|
# File 'lib/ayadn/set.rb', line 363
def cache value
@input = 'cache'
@output = Validators.cache_range(value.to_i)
Settings.options[:nicerank][:cache] = @output
end
|
#filter(value) ⇒ Object
345
346
347
348
349
|
# File 'lib/ayadn/set.rb', line 345
def filter value
@input = 'filter'
@output = Validators.boolean(value)
Settings.options[:nicerank][:filter] = @output
end
|
#filter_unranked(value) ⇒ Object
351
352
353
354
355
|
# File 'lib/ayadn/set.rb', line 351
def filter_unranked value
@input = 'filter_unranked'
@output = Validators.boolean(value)
Settings.options[:nicerank][:filter_unranked] = @output
end
|
#threshold(value) ⇒ Object
357
358
359
360
361
|
# File 'lib/ayadn/set.rb', line 357
def threshold value
@input = 'threshold'
@output = Validators.threshold(value)
Settings.options[:nicerank][:threshold] = @output
end
|