Class: Ayadn::SetChannels
Instance Attribute Summary
Attributes inherited from SetBase
#category, #input, #output
Instance Method Summary
collapse
Methods inherited from SetBase
#log, #save
Constructor Details
506
507
508
509
|
# File 'lib/ayadn/set.rb', line 506
def initialize
super
@category = 'channels'
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, options) ⇒ Object
515
516
517
518
519
520
521
522
523
524
|
# File 'lib/ayadn/set.rb', line 515
def method_missing(meth, options)
@input = meth.to_s
@output = validate(options)
case @input
when 'links'
Settings.options.channels.links = @output
else
super
end
end
|
Instance Method Details
#validate(value) ⇒ Object
511
512
513
|
# File 'lib/ayadn/set.rb', line 511
def validate(value)
Validators.boolean(value)
end
|