Class: CalendarConstraint

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

Constructor Details

#initialize(h = {}) ⇒ CalendarConstraint

Returns a new instance of CalendarConstraint.



3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
# File 'lib/ruby-macrodroid.rb', line 3582

def initialize(h={})

  options = {
    enable_regex: false,
    availability: 0,
    calendar_id: '1',
    calendar_name: 'PC Sync',
    detail_text: '',
    entry_set: true,
    ignore_all_day: false,
    title_text: ''
  }

  super(options.merge h)

end