Class: GenesisRuby::Utils::Options::Reminder
- Defined in:
- lib/genesis_ruby/utils/options/reminder.rb
Overview
Single reminder data object
Constant Summary collapse
- MIN_AFTER =
Min After minutes
1- MAX_AFTER =
Max After minutes
31 * 24 * 60
Instance Method Summary collapse
- #[]=(key, value) ⇒ Object
-
#object_structure ⇒ Object
Single Reinder structure.
Methods inherited from Base
#[], #method_missing, #respond_to_missing?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class GenesisRuby::Utils::Options::Base
Instance Method Details
#[]=(key, value) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/genesis_ruby/utils/options/reminder.rb', line 17 def []=(key, value) unless available_keys.include? key.to_s raise InvalidArgumentError, "Invalid Reminder Key given! Allowed: #{available_keys.join(", ")}" end __send__ "validate_#{key}", value super(key.to_sym, value) end |
#object_structure ⇒ Object
Single Reinder structure
28 29 30 |
# File 'lib/genesis_ruby/utils/options/reminder.rb', line 28 def object_structure { reminder: self } end |