Class: Ayadn::SetMovie
- Inherits:
-
Object
- Object
- Ayadn::SetMovie
- Defined in:
- lib/ayadn/set.rb
Instance Method Summary collapse
- #hashtag(tag) ⇒ Object
-
#initialize ⇒ SetMovie
constructor
A new instance of SetMovie.
- #log(args) ⇒ Object
- #save ⇒ Object
Constructor Details
#initialize ⇒ SetMovie
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.[: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 |
#save ⇒ Object
235 236 237 |
# File 'lib/ayadn/set.rb', line 235 def save Settings.save_config end |