Class: Ayadn::SetNiceRank

Inherits:
SetBase show all
Defined in:
lib/ayadn/set.rb

Instance Attribute Summary

Attributes inherited from SetBase

#category, #input, #output

Instance Method Summary collapse

Methods inherited from SetBase

#log, #save

Constructor Details

#initializeSetNiceRank

Returns a new instance of SetNiceRank.



479
480
481
482
# File 'lib/ayadn/set.rb', line 479

def initialize
  super
  @category = 'nicerank'
end

Instance Method Details

#active(value) ⇒ Object



490
491
492
# File 'lib/ayadn/set.rb', line 490

def active value
  filter(value)
end

#filter(value) ⇒ Object



484
485
486
487
488
# File 'lib/ayadn/set.rb', line 484

def filter value
  @input = 'filter'
  @output = Validators.boolean(value)
  Settings.options[:nicerank][:filter] = @output
end

#threshold(value) ⇒ Object



500
501
502
503
504
# File 'lib/ayadn/set.rb', line 500

def threshold value
  @input = 'threshold'
  @output = Validators.threshold(value)
  Settings.options[:nicerank][:threshold] = @output
end

#unranked(value) ⇒ Object



494
495
496
497
498
# File 'lib/ayadn/set.rb', line 494

def unranked value
  @input = 'unranked'
  @output = Validators.boolean(value)
  Settings.options[:nicerank][:unranked] = @output
end