class Ayadn::SetBackup

Public Class Methods

new() click to toggle source
Calls superclass method Ayadn::SetBase::new
# File lib/ayadn/set.rb, line 454
def initialize
  super
  @category = 'backup'
end

Public Instance Methods

method_missing(meth, options) click to toggle source
Calls superclass method
# File lib/ayadn/set.rb, line 463
def method_missing(meth, options)
  @input = meth.to_s
  @output = validate(options)
  case @input
  when 'posts'
    Settings.options.backup.posts = @output
  when 'messages'
    Settings.options.backup.messages = @output
  when 'lists'
    Settings.options.backup.lists = @output
  else
    super
  end
end
validate(value) click to toggle source
# File lib/ayadn/set.rb, line 459
def validate(value)
  Validators.boolean(value)
end