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.



3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
# File 'lib/ruby-macrodroid.rb', line 3353

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