Class: AWSCronParser::Describer::MonthComposer
- Inherits:
-
Object
- Object
- AWSCronParser::Describer::MonthComposer
- Includes:
- Helpers
- Defined in:
- lib/aws_cron_parser/describer/month_composer.rb
Overview
Composes month descriptions
Instance Attribute Summary collapse
-
#is_aws ⇒ Object
readonly
Returns the value of attribute is_aws.
-
#month ⇒ Object
readonly
Returns the value of attribute month.
Instance Method Summary collapse
- #compose ⇒ Object
-
#initialize(config, is_aws: false) ⇒ MonthComposer
constructor
A new instance of MonthComposer.
Methods included from Helpers
Constructor Details
#initialize(config, is_aws: false) ⇒ MonthComposer
Returns a new instance of MonthComposer.
11 12 13 14 |
# File 'lib/aws_cron_parser/describer/month_composer.rb', line 11 def initialize(config, is_aws: false) @month = config[:month] @is_aws = is_aws end |
Instance Attribute Details
#is_aws ⇒ Object (readonly)
Returns the value of attribute is_aws.
9 10 11 |
# File 'lib/aws_cron_parser/describer/month_composer.rb', line 9 def is_aws @is_aws end |
#month ⇒ Object (readonly)
Returns the value of attribute month.
9 10 11 |
# File 'lib/aws_cron_parser/describer/month_composer.rb', line 9 def month @month end |
Instance Method Details
#compose ⇒ Object
16 17 18 19 20 |
# File 'lib/aws_cron_parser/describer/month_composer.rb', line 16 def compose return nil if wildcards?(month) FieldDescribers::Month.new(month, is_aws: is_aws).describe end |