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.
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.[: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 |
#save ⇒ Object
189 190 191 |
# File 'lib/ayadn/set.rb', line 189 def save Settings.save_config end |