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.
352
353
354
355
|
# File 'lib/ayadn/set.rb', line 352
def initialize
super
@category = 'nicerank'
end
|
Instance Method Details
#cache(value) ⇒ Object
375
376
377
378
379
|
# File 'lib/ayadn/set.rb', line 375
def cache value
@input = 'cache'
@output = Validators.cache_range(value.to_i)
Settings.options[:nicerank][:cache] = @output
end
|
#filter(value) ⇒ Object
357
358
359
360
361
|
# File 'lib/ayadn/set.rb', line 357
def filter value
@input = 'filter'
@output = Validators.boolean(value)
Settings.options[:nicerank][:filter] = @output
end
|
#filter_unranked(value) ⇒ Object
363
364
365
366
367
|
# File 'lib/ayadn/set.rb', line 363
def filter_unranked value
@input = 'filter_unranked'
@output = Validators.boolean(value)
Settings.options[:nicerank][:filter_unranked] = @output
end
|
#threshold(value) ⇒ Object
369
370
371
372
373
|
# File 'lib/ayadn/set.rb', line 369
def threshold value
@input = 'threshold'
@output = Validators.threshold(value)
Settings.options[:nicerank][:threshold] = @output
end
|