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.



135
136
137
138
139
140
# File 'lib/ayadn/set.rb', line 135

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

Instance Method Details

#log(args) ⇒ Object



141
142
143
144
145
# File 'lib/ayadn/set.rb', line 141

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



146
147
148
# File 'lib/ayadn/set.rb', line 146

def save
  Settings.save_config
end

#timer(t) ⇒ Object



152
153
154
# File 'lib/ayadn/set.rb', line 152

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

#validate(t) ⇒ Object



149
150
151
# File 'lib/ayadn/set.rb', line 149

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