Class: DayOfMonthConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- DayOfMonthConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Date/Time
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ DayOfMonthConstraint
constructor
A new instance of DayOfMonthConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ DayOfMonthConstraint
Returns a new instance of DayOfMonthConstraint.
5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 |
# File 'lib/ruby-macrodroid.rb', line 5152 def initialize(h={}) = { day_names: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"], days_of_month: [false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false] } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5163 5164 5165 |
# File 'lib/ruby-macrodroid.rb', line 5163 def to_s(colour: false) 'DayOfMonthConstraint ' + @h.inspect end |