Class: Ayadn::PreferencesBlacklist
- Defined in:
- lib/ayadn/preferences_object.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PreferencesBlacklist
constructor
A new instance of PreferencesBlacklist.
- #to_h ⇒ Object
Constructor Details
#initialize(hash) ⇒ PreferencesBlacklist
Returns a new instance of PreferencesBlacklist.
216 217 218 |
# File 'lib/ayadn/preferences_object.rb', line 216 def initialize hash @active = hash[:active] end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
215 216 217 |
# File 'lib/ayadn/preferences_object.rb', line 215 def active @active end |
Instance Method Details
#to_h ⇒ Object
219 220 221 |
# File 'lib/ayadn/preferences_object.rb', line 219 def to_h { active: @active } end |