Class: Ayadn::SetScroll

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

Instance Method Summary collapse

Constructor Details

#initializeSetScroll

Returns a new instance of SetScroll.



155
156
157
158
159
160
# File 'lib/ayadn/set.rb', line 155

def initialize
  Settings.load_config
  Settings.get_token
  Settings.init_config
  Logs.create_logger
end

Instance Method Details

#log(args) ⇒ Object



161
162
163
164
165
# File 'lib/ayadn/set.rb', line 161

def log(args)
  x = "New value for '#{args[0]}' in 'Scroll' => #{args[1]}"
  puts "\n#{x}\n".color(:cyan)
  Logs.rec.info x
end

#saveObject



166
167
168
# File 'lib/ayadn/set.rb', line 166

def save
  Settings.save_config
end

#timer(t) ⇒ Object



172
173
174
# File 'lib/ayadn/set.rb', line 172

def timer(t)
  Settings.options[:scroll][:timer] = t
end

#validate(t) ⇒ Object



169
170
171
# File 'lib/ayadn/set.rb', line 169

def validate(t)
  Validators.timer(t)
end