Module: FileScheduler::Content

Included in:
File, URL
Defined in:
lib/file_scheduler/content.rb

Instance Method Summary collapse

Instance Method Details

#attributes_parserObject



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

#parserObject



7
8
9
# File 'lib/file_scheduler/content.rb', line 7

def parser
  @parser ||= TimeParser.new
end

#repeat_constraintsObject



15
16
17
# File 'lib/file_scheduler/content.rb', line 15

def repeat_constraints
  @repeat_constraints ||= attributes[:repeat].try(:to_i)
end