Module: FileScheduler::Content
Instance Method Summary collapse
- #attributes_parser ⇒ Object
- #forced_started_time? ⇒ Boolean
- #parser ⇒ Object
- #repeat_constraints ⇒ Object
Instance Method Details
#attributes_parser ⇒ Object
11 12 13 |
# File 'lib/file_scheduler/content.rb', line 11 def attributes_parser @attributes_parser ||= AttributesParser.new end |
#forced_started_time? ⇒ Boolean
3 4 5 |
# File 'lib/file_scheduler/content.rb', line 3 def forced_started_time? name.start_with?("T") end |
#parser ⇒ Object
7 8 9 |
# File 'lib/file_scheduler/content.rb', line 7 def parser @parser ||= TimeParser.new end |
#repeat_constraints ⇒ Object
15 16 17 |
# File 'lib/file_scheduler/content.rb', line 15 def repeat_constraints @repeat_constraints ||= attributes[:repeat].try(:to_i) end |