Class: MonthOfYearConstraint

Inherits:
Constraint show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Date/Time

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ MonthOfYearConstraint

Returns a new instance of MonthOfYearConstraint.



4473
4474
4475
4476
4477
4478
4479
4480
4481
# File 'lib/ruby-macrodroid.rb', line 4473

def initialize(h={})

  options = {
    months: [false, false, false, false, false, false, false, true, false, false, false, false]
  }

  super(options.merge h)

end