Class: AWSCronParser::Describer::FieldDescribers::TimeField
- 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
-
#field_type ⇒ Object
readonly
Returns the value of attribute field_type.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(value, field_type, is_aws: false) ⇒ TimeField
constructor
A new instance of TimeField.
Methods inherited from Base
Methods included from Helpers
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_type ⇒ Object (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 |