Class: MonthOfYearConstraint

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

Overview

Category: Date/Time

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #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.



4333
4334
4335
4336
4337
4338
4339
4340
4341
# File 'lib/ruby-macrodroid.rb', line 4333

def initialize(h={})

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

  super(options.merge h)

end