Class: Ayadn::SetMovie

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

Instance Method Summary collapse

Constructor Details

#initializeSetMovie

Returns a new instance of SetMovie.



224
225
226
227
228
229
# File 'lib/ayadn/set.rb', line 224

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

Instance Method Details

#hashtag(tag) ⇒ Object



238
239
240
# File 'lib/ayadn/set.rb', line 238

def hashtag(tag)
  Settings.options[:movie][:hashtag] = tag
end

#log(args) ⇒ Object



230
231
232
233
234
# File 'lib/ayadn/set.rb', line 230

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

#saveObject



235
236
237
# File 'lib/ayadn/set.rb', line 235

def save
  Settings.save_config
end