Class: Ayadn::SetNiceRank

Inherits:
SetBase
  • Object
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.



404
405
406
407
# File 'lib/ayadn/set.rb', line 404

def initialize
  super
  @category = 'nicerank'
end

Instance Method Details

#active(value) ⇒ Object



415
416
417
# File 'lib/ayadn/set.rb', line 415

def active value
  filter(value)
end

#filter(value) ⇒ Object



409
410
411
412
413
# File 'lib/ayadn/set.rb', line 409

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

#threshold(value) ⇒ Object



425
426
427
428
429
# File 'lib/ayadn/set.rb', line 425

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

#unranked(value) ⇒ Object



419
420
421
422
423
# File 'lib/ayadn/set.rb', line 419

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