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.



178
179
180
181
182
183
# File 'lib/ayadn/set.rb', line 178

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

Instance Method Details

#hashtag(tag) ⇒ Object



192
193
194
# File 'lib/ayadn/set.rb', line 192

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

#log(args) ⇒ Object



184
185
186
187
188
# File 'lib/ayadn/set.rb', line 184

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



189
190
191
# File 'lib/ayadn/set.rb', line 189

def save
  Settings.save_config
end