Class: Ayadn::SetBase
- Inherits:
-
Object
- Object
- Ayadn::SetBase
- Defined in:
- lib/ayadn/set.rb
Direct Known Subclasses
SetBackup, SetColor, SetCounts, SetFormats, SetMarker, 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.
240 241 242 243 244 245 |
# File 'lib/ayadn/set.rb', line 240 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.
238 239 240 |
# File 'lib/ayadn/set.rb', line 238 def category @category end |
#input ⇒ Object
Returns the value of attribute input.
238 239 240 |
# File 'lib/ayadn/set.rb', line 238 def input @input end |
#output ⇒ Object
Returns the value of attribute output.
238 239 240 |
# File 'lib/ayadn/set.rb', line 238 def output @output end |
Instance Method Details
#log ⇒ Object
252 253 254 255 256 |
# File 'lib/ayadn/set.rb', line 252 def log x = "New value for '#{@input}' in '#{@category}' => #{@output}" puts "\n#{x}\n".color(:cyan) Logs.rec.info x end |
#save ⇒ Object
247 248 249 250 |
# File 'lib/ayadn/set.rb', line 247 def save Settings.save_config() log() end |