Class: Ayadn::SetBase
- Inherits:
-
Object
- Object
- Ayadn::SetBase
- Defined in:
- lib/ayadn/set.rb
Direct Known Subclasses
SetBackup, SetColor, SetCounts, SetFormats, SetMovie, SetNiceRank, SetScroll, SetTVShow, SetTimeline
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#input ⇒ Object
Returns the value of attribute input.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize ⇒ SetBase
constructor
A new instance of SetBase.
- #log ⇒ Object
- #save ⇒ Object
Constructor Details
#initialize ⇒ SetBase
Returns a new instance of SetBase.
228 229 230 231 232 233 |
# File 'lib/ayadn/set.rb', line 228 def initialize Settings.load_config() Settings.get_token() Settings.init_config() Logs.create_logger() end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
226 227 228 |
# File 'lib/ayadn/set.rb', line 226 def category @category end |
#input ⇒ Object
Returns the value of attribute input.
226 227 228 |
# File 'lib/ayadn/set.rb', line 226 def input @input end |
#output ⇒ Object
Returns the value of attribute output.
226 227 228 |
# File 'lib/ayadn/set.rb', line 226 def output @output end |
Instance Method Details
#log ⇒ Object
240 241 242 243 244 |
# File 'lib/ayadn/set.rb', line 240 def log x = "New value for '#{@input}' in '#{@category}' => #{@output}" puts "\n#{x}\n".color(:cyan) Logs.rec.info x end |
#save ⇒ Object
235 236 237 238 |
# File 'lib/ayadn/set.rb', line 235 def save Settings.save_config() log() end |