Class: Ayadn::SetTVShow
- Inherits:
-
Object
- Object
- Ayadn::SetTVShow
- Defined in:
- lib/ayadn/set.rb
Instance Method Summary collapse
- #hashtag(tag) ⇒ Object
-
#initialize ⇒ SetTVShow
constructor
A new instance of SetTVShow.
- #log(args) ⇒ Object
- #save ⇒ Object
Constructor Details
#initialize ⇒ SetTVShow
Returns a new instance of SetTVShow.
244 245 246 247 248 249 |
# File 'lib/ayadn/set.rb', line 244 def initialize Settings.load_config Settings.get_token Settings.init_config Logs.create_logger end |
Instance Method Details
#hashtag(tag) ⇒ Object
258 259 260 |
# File 'lib/ayadn/set.rb', line 258 def hashtag(tag) Settings.[:tvshow][:hashtag] = tag end |
#log(args) ⇒ Object
250 251 252 253 254 |
# File 'lib/ayadn/set.rb', line 250 def log(args) x = "New value for '#{args[0]}' in 'TV Show' => #{args[1]}" puts "\n#{x}\n".color(:cyan) Logs.rec.info x end |
#save ⇒ Object
255 256 257 |
# File 'lib/ayadn/set.rb', line 255 def save Settings.save_config end |