Class: AWSCronParser::Describer::FieldDescribers::TimeField

Inherits:
Base
  • Object
show all
Defined in:
lib/aws_cron_parser/describer/field_describers/time_field.rb

Overview

Describes time fields (second, minute, hour)

Constant Summary

Constants inherited from Base

Base::LIST_PATTERN, Base::RANGE_PATTERN, Base::STEP_PATTERN

Instance Attribute Summary collapse

Attributes inherited from Base

#is_aws, #value

Instance Method Summary collapse

Methods inherited from Base

#describe

Methods included from Helpers

included

Constructor Details

#initialize(value, field_type, is_aws: false) ⇒ TimeField

Returns a new instance of TimeField.



12
13
14
15
# File 'lib/aws_cron_parser/describer/field_describers/time_field.rb', line 12

def initialize(value, field_type, is_aws: false)
  super(value, is_aws: is_aws)
  @field_type = field_type # :second, :minute, or :hour
end

Instance Attribute Details

#field_typeObject (readonly)

Returns the value of attribute field_type.



10
11
12
# File 'lib/aws_cron_parser/describer/field_describers/time_field.rb', line 10

def field_type
  @field_type
end