Class: Ayadn::PreferencesBlacklist

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/preferences_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#activeObject

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_hObject



219
220
221
# File 'lib/ayadn/preferences_object.rb', line 219

def to_h
  { active: @active }
end