class Ayadn::PreferencesNicerank

Attributes

filter[RW]
threshold[RW]
unranked[RW]

Public Class Methods

new(hash) click to toggle source
# File lib/ayadn/preferences_object.rb, line 200
def initialize hash
  @threshold = hash[:threshold]
  @filter = hash[:filter]
  @unranked = hash[:unranked]
end

Public Instance Methods

to_h() click to toggle source
# File lib/ayadn/preferences_object.rb, line 205
def to_h
  {
    threshold: @threshold,
    filter: @filter,
    unranked: @unranked
  }
end