Class: Ayadn::PreferencesNicerank
- Defined in:
- lib/ayadn/preferences_object.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#threshold ⇒ Object
Returns the value of attribute threshold.
-
#unranked ⇒ Object
Returns the value of attribute unranked.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PreferencesNicerank
constructor
A new instance of PreferencesNicerank.
- #to_h ⇒ Object
Constructor Details
#initialize(hash) ⇒ PreferencesNicerank
Returns a new instance of PreferencesNicerank.
200 201 202 203 204 |
# File 'lib/ayadn/preferences_object.rb', line 200 def initialize hash @threshold = hash[:threshold] @filter = hash[:filter] @unranked = hash[:unranked] end |
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
199 200 201 |
# File 'lib/ayadn/preferences_object.rb', line 199 def filter @filter end |
#threshold ⇒ Object
Returns the value of attribute threshold.
199 200 201 |
# File 'lib/ayadn/preferences_object.rb', line 199 def threshold @threshold end |
#unranked ⇒ Object
Returns the value of attribute unranked.
199 200 201 |
# File 'lib/ayadn/preferences_object.rb', line 199 def unranked @unranked end |
Instance Method Details
#to_h ⇒ Object
205 206 207 208 209 210 211 |
# File 'lib/ayadn/preferences_object.rb', line 205 def to_h { threshold: @threshold, filter: @filter, unranked: @unranked } end |